742N/A#
742N/A# CDDL HEADER START
742N/A#
742N/A# The contents of this file are subject to the terms of the
742N/A# Common Development and Distribution License (the "License").
742N/A# You may not use this file except in compliance with the License.
742N/A#
742N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
742N/A# or http://www.opensolaris.org/os/licensing.
742N/A# See the License for the specific language governing permissions
742N/A# and limitations under the License.
742N/A#
742N/A# When distributing Covered Code, include this CDDL HEADER in each
742N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
742N/A# If applicable, add the following below this CDDL HEADER, with the
742N/A# fields enclosed by brackets "[]" replaced with your own identifying
742N/A# information: Portions Copyright [yyyy] [name of copyright owner]
742N/A#
742N/A# CDDL HEADER END
742N/A#
742N/A
742N/A#
742N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
742N/A# Use is subject to license terms.
742N/A#
742N/A#
742N/A# This makefile drives the production of the xnbo
742N/A# network driver kernel module.
742N/A#
742N/A# i86xpv architecture dependent
742N/A#
742N/A
742N/A#
742N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
742N/A#
742N/AUTSBASE = ../..
742N/A
742N/A#
742N/A# Define the module and object file sets.
742N/A#
742N/AMODULE = xnbo
742N/AOBJECTS = $(XNBO_OBJS:%=$(OBJS_DIR)/%)
742N/ALINTS = $(XNBO_OBJS:%.o=$(LINTS_DIR)/%.ln)
742N/AROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
742N/A
742N/A#
742N/A# Include common rules.
742N/A#
include $(UTSBASE)/i86xpv/Makefile.i86xpv
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides
#
DEF_BUILDS = $(DEF_BUILDS64)
ALL_BUILDS = $(ALL_BUILDS64)
#
# Driver depends on xnb and mac.
#
LDFLAGS += -dy -N misc/xnb -N misc/mac
#
# use Solaris specific code in xen public header files
#
CFLAGS += -D_SOLARIS
LINTFLAGS += -D_SOLARIS
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
# This build only 64-bit, but the lint32 below
# needs corresponding clean/clobber deps.
clean: $(CLEAN_DEPS) clean.debug32
clobber: $(CLOBBER_DEPS) clobber.debug32
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/i86xpv/Makefile.targ