xref: /titanic_44/usr/src/uts/intel/ipf/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
2381a2a9aSdr146992# CDDL HEADER START
3381a2a9aSdr146992#
4381a2a9aSdr146992# The contents of this file are subject to the terms of the
5381a2a9aSdr146992# Common Development and Distribution License (the "License").
6381a2a9aSdr146992# You may not use this file except in compliance with the License.
7381a2a9aSdr146992#
8381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing.
10381a2a9aSdr146992# See the License for the specific language governing permissions
11381a2a9aSdr146992# and limitations under the License.
12381a2a9aSdr146992#
13381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each
14381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the
16381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying
17381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner]
18381a2a9aSdr146992#
19381a2a9aSdr146992# CDDL HEADER END
20381a2a9aSdr146992#
21381a2a9aSdr146992#
22ab073b32Sdr146992# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# uts/intel/ipf/Makefile
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#	This makefile drives the production of the ipf driver
287c478bd9Sstevel@tonic-gate#	kernel module.
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	intel architecture dependent
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gateUTSBASE	= ../..
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gateMODULE		= ipf
427c478bd9Sstevel@tonic-gateOBJECTS		= $(IPF_OBJS:%=$(OBJS_DIR)/%)
437c478bd9Sstevel@tonic-gateLINTS		= $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
447c478bd9Sstevel@tonic-gateROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
457c478bd9Sstevel@tonic-gateCONF_SRCDIR	= $(UTSBASE)/common/inet/ipf
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate#
487c478bd9Sstevel@tonic-gate#	Include common rules.
497c478bd9Sstevel@tonic-gate#
507c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.intel
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gate#	Define targets
547c478bd9Sstevel@tonic-gate#
557c478bd9Sstevel@tonic-gateALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
567c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
577c478bd9Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
587c478bd9Sstevel@tonic-gate
597663b816Sml37995CPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
602032ea7bSmeemCPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN
617ddc9b1aSDarren ReedLDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/hook -Nmisc/kcf
627c478bd9Sstevel@tonic-gate
63ab25eeb5Syz155240INC_PATH += -I$(UTSBASE)/common/inet/ipf
64ab25eeb5Syz155240
657c478bd9Sstevel@tonic-gate#
66bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
67bb25c06cSjg# to investigate and remove these for maximum lint coverage.
68bb25c06cSjg# Please do not carry these forward to new Makefiles.
69bb25c06cSjg#
70bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
71bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
73bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74bb25c06cSjg
75*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
76*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
77*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
78*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
79*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-empty-body
80*7014882cSRichard Lowe
81bb25c06cSjg#
827c478bd9Sstevel@tonic-gate#	Default build targets.
837c478bd9Sstevel@tonic-gate#
847c478bd9Sstevel@tonic-gate.KEEP_STATE:
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
877c478bd9Sstevel@tonic-gate
88112f9fc1Syz155240all:		$(ALL_DEPS) $(SISCHECK_DEPS)
897c478bd9Sstevel@tonic-gate
90112f9fc1Syz155240clean:		$(CLEAN_DEPS) $(SISCLEAN_DEPS)
917c478bd9Sstevel@tonic-gate
92112f9fc1Syz155240clobber:	$(CLOBBER_DEPS) $(SISCLEAN_DEPS)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
997c478bd9Sstevel@tonic-gate
100112f9fc1Syz155240install:	$(INSTALL_DEPS) $(SISCHECK_DEPS)
101f4b3ec61Sdh155122
1027c478bd9Sstevel@tonic-gate#
1037c478bd9Sstevel@tonic-gate#	Include common targets.
1047c478bd9Sstevel@tonic-gate#
1057c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/intel/Makefile.targ
106