Makefile revision 843e19887f64dde75055cf8842fc4db2171eff45
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
9bff67898d55cddfcec9ce30cc2b1bb6211ec691David Lawrence# You may not use this file except in compliance with the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# or http://www.opensolaris.org/os/licensing.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# See the License for the specific language governing permissions
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# and limitations under the License.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# When distributing Covered Code, include this CDDL HEADER in each
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# If applicable, add the following below this CDDL HEADER, with the
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# CDDL HEADER END
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Use is subject to license terms.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# ident "%Z%%M% %I% %E% SMI"
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# This makefile drives the production of the xnbe
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# network driver kernel module.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# i86xpv architecture dependent
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Path to the base of the uts directory tree (usually /usr/src/uts).
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffUTSBASE = ../..
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Define the module and object file sets.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
c43deb8aacb70124a8016f408c64b80d4c019b68David LawrenceMODULE = xnbe
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffOBJECTS = $(XNBE_OBJS:%=$(OBJS_DIR)/%)
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffLINTS = $(XNBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Include common rules.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Define targets
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffALL_TARGET = $(BINARY)
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffLINT_TARGET = $(MODULE).lint
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Driver depends on MAC and IP.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#LDFLAGS += -dy -N misc/mac -N drv/ip
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# use Solaris specific code in xen public header files
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffCFLAGS += -D_SOLARIS
cf608835a3b057be837bf68bda8abf9550f92294Michael GraffLINTFLAGS += -D_SOLARIS
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Default build targets.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff.KEEP_STATE:
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffdef: $(DEF_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffall: $(ALL_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffclean: $(CLEAN_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffclobber: $(CLOBBER_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Grafflint: $(LINT_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffmodlintlib: $(MODLINTLIB_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffclean.lint: $(CLEAN_LINT_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffinstall: $(INSTALL_DEPS)
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff# Include common targets.
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff#
cf608835a3b057be837bf68bda8abf9550f92294Michael Graffinclude $(UTSBASE)/i86xpv/Makefile.targ
cf608835a3b057be837bf68bda8abf9550f92294Michael Graff