1*843e1988Sjohnlev# 2*843e1988Sjohnlev# CDDL HEADER START 3*843e1988Sjohnlev# 4*843e1988Sjohnlev# The contents of this file are subject to the terms of the 5*843e1988Sjohnlev# Common Development and Distribution License (the "License"). 6*843e1988Sjohnlev# You may not use this file except in compliance with the License. 7*843e1988Sjohnlev# 8*843e1988Sjohnlev# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*843e1988Sjohnlev# or http://www.opensolaris.org/os/licensing. 10*843e1988Sjohnlev# See the License for the specific language governing permissions 11*843e1988Sjohnlev# and limitations under the License. 12*843e1988Sjohnlev# 13*843e1988Sjohnlev# When distributing Covered Code, include this CDDL HEADER in each 14*843e1988Sjohnlev# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*843e1988Sjohnlev# If applicable, add the following below this CDDL HEADER, with the 16*843e1988Sjohnlev# fields enclosed by brackets "[]" replaced with your own identifying 17*843e1988Sjohnlev# information: Portions Copyright [yyyy] [name of copyright owner] 18*843e1988Sjohnlev# 19*843e1988Sjohnlev# CDDL HEADER END 20*843e1988Sjohnlev# 21*843e1988Sjohnlev 22*843e1988Sjohnlev# 23*843e1988Sjohnlev# uts/i86xpv/xnf/Makefile 24*843e1988Sjohnlev# 25*843e1988Sjohnlev# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 26*843e1988Sjohnlev# Use is subject to license terms. 27*843e1988Sjohnlev# 28*843e1988Sjohnlev# ident "%Z%%M% %I% %E% SMI" 29*843e1988Sjohnlev# 30*843e1988Sjohnlev# This makefile drives the production of the xve 31*843e1988Sjohnlev# network driver kernel module. 32*843e1988Sjohnlev# 33*843e1988Sjohnlev# i86xpv architecture dependent 34*843e1988Sjohnlev# 35*843e1988Sjohnlev 36*843e1988Sjohnlev# 37*843e1988Sjohnlev# Path to the base of the uts directory tree (usually /usr/src/uts). 38*843e1988Sjohnlev# 39*843e1988SjohnlevUTSBASE = ../.. 40*843e1988Sjohnlev 41*843e1988Sjohnlev# 42*843e1988Sjohnlev# Define the module and object file sets. 43*843e1988Sjohnlev# 44*843e1988SjohnlevMODULE = xnf 45*843e1988SjohnlevOBJECTS = $(XNF_OBJS:%=$(OBJS_DIR)/%) 46*843e1988SjohnlevLINTS = $(XNF_OBJS:%.o=$(LINTS_DIR)/%.ln) 47*843e1988SjohnlevROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 48*843e1988Sjohnlev 49*843e1988Sjohnlev# 50*843e1988Sjohnlev# Include common rules. 51*843e1988Sjohnlev# 52*843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 53*843e1988Sjohnlev 54*843e1988Sjohnlev# 55*843e1988Sjohnlev# Define targets 56*843e1988Sjohnlev# 57*843e1988SjohnlevALL_TARGET = $(BINARY) 58*843e1988SjohnlevLINT_TARGET = $(MODULE).lint 59*843e1988SjohnlevINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 60*843e1988Sjohnlev 61*843e1988Sjohnlev# 62*843e1988Sjohnlev# Driver depends on MAC & IP 63*843e1988Sjohnlev# 64*843e1988SjohnlevLDFLAGS += -dy -N misc/mac -N drv/ip 65*843e1988Sjohnlev 66*843e1988Sjohnlev# 67*843e1988Sjohnlev# use Solaris specific code in xen public header files 68*843e1988Sjohnlev# 69*843e1988SjohnlevCFLAGS += -D_SOLARIS 70*843e1988SjohnlevLINTFLAGS += -D_SOLARIS 71*843e1988Sjohnlev 72*843e1988SjohnlevLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 73*843e1988SjohnlevLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 74*843e1988SjohnlevLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 75*843e1988Sjohnlev 76*843e1988Sjohnlev# 77*843e1988Sjohnlev# Default build targets. 78*843e1988Sjohnlev# 79*843e1988Sjohnlev.KEEP_STATE: 80*843e1988Sjohnlev 81*843e1988Sjohnlevdef: $(DEF_DEPS) 82*843e1988Sjohnlev 83*843e1988Sjohnlevall: $(ALL_DEPS) 84*843e1988Sjohnlev 85*843e1988Sjohnlevclean: $(CLEAN_DEPS) 86*843e1988Sjohnlev 87*843e1988Sjohnlevclobber: $(CLOBBER_DEPS) 88*843e1988Sjohnlev 89*843e1988Sjohnlevlint: $(LINT_DEPS) 90*843e1988Sjohnlev 91*843e1988Sjohnlevmodlintlib: $(MODLINTLIB_DEPS) 92*843e1988Sjohnlev 93*843e1988Sjohnlevclean.lint: $(CLEAN_LINT_DEPS) 94*843e1988Sjohnlev 95*843e1988Sjohnlevinstall: $(INSTALL_DEPS) 96*843e1988Sjohnlev 97*843e1988Sjohnlev# 98*843e1988Sjohnlev# Include common targets. 99*843e1988Sjohnlev# 100*843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ 101