1*eb0cc229Sedp# 2*eb0cc229Sedp# CDDL HEADER START 3*eb0cc229Sedp# 4*eb0cc229Sedp# The contents of this file are subject to the terms of the 5*eb0cc229Sedp# Common Development and Distribution License (the "License"). 6*eb0cc229Sedp# You may not use this file except in compliance with the License. 7*eb0cc229Sedp# 8*eb0cc229Sedp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*eb0cc229Sedp# or http://www.opensolaris.org/os/licensing. 10*eb0cc229Sedp# See the License for the specific language governing permissions 11*eb0cc229Sedp# and limitations under the License. 12*eb0cc229Sedp# 13*eb0cc229Sedp# When distributing Covered Code, include this CDDL HEADER in each 14*eb0cc229Sedp# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*eb0cc229Sedp# If applicable, add the following below this CDDL HEADER, with the 16*eb0cc229Sedp# fields enclosed by brackets "[]" replaced with your own identifying 17*eb0cc229Sedp# information: Portions Copyright [yyyy] [name of copyright owner] 18*eb0cc229Sedp# 19*eb0cc229Sedp# CDDL HEADER END 20*eb0cc229Sedp# 21*eb0cc229Sedp 22*eb0cc229Sedp# 23*eb0cc229Sedp# uts/i86pc/xnf/Makefile 24*eb0cc229Sedp# 25*eb0cc229Sedp# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 26*eb0cc229Sedp# Use is subject to license terms. 27*eb0cc229Sedp# 28*eb0cc229Sedp# ident "%Z%%M% %I% %E% SMI" 29*eb0cc229Sedp# 30*eb0cc229Sedp# This makefile drives the production of the xve 31*eb0cc229Sedp# network driver kernel module. 32*eb0cc229Sedp# 33*eb0cc229Sedp# i86pc architecture dependent 34*eb0cc229Sedp# 35*eb0cc229Sedp 36*eb0cc229Sedp# 37*eb0cc229Sedp# Path to the base of the uts directory tree (usually /usr/src/uts). 38*eb0cc229Sedp# 39*eb0cc229SedpUTSBASE = ../../.. 40*eb0cc229Sedp 41*eb0cc229Sedp# 42*eb0cc229Sedp# Define the module and object file sets. 43*eb0cc229Sedp# 44*eb0cc229SedpMODULE = xnf 45*eb0cc229SedpOBJECTS = $(XNF_OBJS:%=$(OBJS_DIR)/%) 46*eb0cc229SedpLINTS = $(XNF_OBJS:%.o=$(LINTS_DIR)/%.ln) 47*eb0cc229SedpROOTMODULE = $(ROOT_HVM_DRV_DIR)/$(MODULE) 48*eb0cc229Sedp 49*eb0cc229Sedp# 50*eb0cc229Sedp# Include common rules. 51*eb0cc229Sedp# 52*eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.i86hvm 53*eb0cc229Sedp 54*eb0cc229Sedp# 55*eb0cc229Sedp# Define targets 56*eb0cc229Sedp# 57*eb0cc229SedpALL_TARGET = $(BINARY) 58*eb0cc229SedpLINT_TARGET = $(MODULE).lint 59*eb0cc229SedpINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 60*eb0cc229Sedp 61*eb0cc229Sedp# 62*eb0cc229Sedp# Driver depends on MAC & IP 63*eb0cc229Sedp# 64*eb0cc229SedpCPPFLAGS += -DHVMPV_XNF_VERS=1 65*eb0cc229SedpLDFLAGS += -dy -Nmisc/mac -Ndrv/ip -Ndrv/xpvd -Ndrv/xpv 66*eb0cc229Sedp 67*eb0cc229SedpLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 68*eb0cc229SedpLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 69*eb0cc229SedpLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 70*eb0cc229Sedp 71*eb0cc229Sedp# 72*eb0cc229Sedp# Default build targets. 73*eb0cc229Sedp# 74*eb0cc229Sedp.KEEP_STATE: 75*eb0cc229Sedp 76*eb0cc229Sedpdef: $(DEF_DEPS) 77*eb0cc229Sedp 78*eb0cc229Sedpall: $(ALL_DEPS) 79*eb0cc229Sedp 80*eb0cc229Sedpclean: $(CLEAN_DEPS) 81*eb0cc229Sedp 82*eb0cc229Sedpclobber: $(CLOBBER_DEPS) 83*eb0cc229Sedp 84*eb0cc229Sedplint: $(LINT_DEPS) 85*eb0cc229Sedp 86*eb0cc229Sedpmodlintlib: $(MODLINTLIB_DEPS) 87*eb0cc229Sedp 88*eb0cc229Sedpclean.lint: $(CLEAN_LINT_DEPS) 89*eb0cc229Sedp 90*eb0cc229Sedpinstall: $(INSTALL_DEPS) 91*eb0cc229Sedp 92*eb0cc229Sedp# 93*eb0cc229Sedp# Include common targets. 94*eb0cc229Sedp# 95*eb0cc229Sedpinclude $(UTSBASE)/i86pc/i86hvm/Makefile.targ 96