1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate# uts/sparc/ipf/Makefile 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# 10*7c478bd9Sstevel@tonic-gate# This makefile drives the production of the ipf driver 11*7c478bd9Sstevel@tonic-gate# kernel module. 12*7c478bd9Sstevel@tonic-gate# 13*7c478bd9Sstevel@tonic-gate# sparc architecture dependent 14*7c478bd9Sstevel@tonic-gate# 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gate# 17*7c478bd9Sstevel@tonic-gate# Path to the base of the uts directory tree (usually /usr/src/uts). 18*7c478bd9Sstevel@tonic-gate# 19*7c478bd9Sstevel@tonic-gateUTSBASE = ../.. 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# Define the module and object file sets. 23*7c478bd9Sstevel@tonic-gate# 24*7c478bd9Sstevel@tonic-gateMODULE = ipf 25*7c478bd9Sstevel@tonic-gateOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%) 26*7c478bd9Sstevel@tonic-gateLINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln) 27*7c478bd9Sstevel@tonic-gateROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 28*7c478bd9Sstevel@tonic-gateCONF_SRCDIR = $(UTSBASE)/common/inet/ipf 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate# 31*7c478bd9Sstevel@tonic-gate# Include common rules. 32*7c478bd9Sstevel@tonic-gate# 33*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.sparc 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gate# 36*7c478bd9Sstevel@tonic-gate# Define targets 37*7c478bd9Sstevel@tonic-gate# 38*7c478bd9Sstevel@tonic-gateALL_TARGET = $(BINARY) $(SRC_CONFFILE) 39*7c478bd9Sstevel@tonic-gateLINT_TARGET = $(MODULE).lint 40*7c478bd9Sstevel@tonic-gateINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate# 43*7c478bd9Sstevel@tonic-gate# lint pass one enforcement and OS version 44*7c478bd9Sstevel@tonic-gate# 45*7c478bd9Sstevel@tonic-gateMINOR= echo $(RELEASE) | cut -d. -f2 46*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 47*7c478bd9Sstevel@tonic-gateCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP 48*7c478bd9Sstevel@tonic-gateCPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN 49*7c478bd9Sstevel@tonic-gateLDFLAGS += -dy -Ndrv/ip -Ndrv/pfil -Nmisc/md5 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate# 52*7c478bd9Sstevel@tonic-gate# Default build targets. 53*7c478bd9Sstevel@tonic-gate# 54*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gatedef: $(DEF_DEPS) 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gateall: $(ALL_DEPS) 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateclean: $(CLEAN_DEPS) 61*7c478bd9Sstevel@tonic-gate 62*7c478bd9Sstevel@tonic-gateclobber: $(CLOBBER_DEPS) 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gatelint: $(LINT_DEPS) 65*7c478bd9Sstevel@tonic-gate 66*7c478bd9Sstevel@tonic-gatemodlintlib: $(MODLINTLIB_DEPS) 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gateclean.lint: $(CLEAN_LINT_DEPS) 69*7c478bd9Sstevel@tonic-gate 70*7c478bd9Sstevel@tonic-gateinstall: $(INSTALL_DEPS) 71*7c478bd9Sstevel@tonic-gate 72*7c478bd9Sstevel@tonic-gate# 73*7c478bd9Sstevel@tonic-gate# Include common targets. 74*7c478bd9Sstevel@tonic-gate# 75*7c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ 76