xref: /titanic_52/usr/src/uts/sparc/ipf/Makefile (revision 112f9fc1e25dcac8b980e034e763f96fb9736261)
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#
22f4b3ec61Sdh155122# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# uts/sparc/ipf/Makefile
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	This makefile drives the production of the ipf driver
317c478bd9Sstevel@tonic-gate#	kernel module.
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate#	sparc architecture dependent
347c478bd9Sstevel@tonic-gate#
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate#
377c478bd9Sstevel@tonic-gate#	Path to the base of the uts directory tree (usually /usr/src/uts).
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gateUTSBASE	= ../..
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate#
427c478bd9Sstevel@tonic-gate#	Define the module and object file sets.
437c478bd9Sstevel@tonic-gate#
447c478bd9Sstevel@tonic-gateMODULE		= ipf
457c478bd9Sstevel@tonic-gateOBJECTS		= $(IPF_OBJS:%=$(OBJS_DIR)/%)
467c478bd9Sstevel@tonic-gateLINTS		= $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
477c478bd9Sstevel@tonic-gateROOTMODULE	= $(USR_DRV_DIR)/$(MODULE)
487c478bd9Sstevel@tonic-gateCONF_SRCDIR	= $(UTSBASE)/common/inet/ipf
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gate#
517c478bd9Sstevel@tonic-gate#	Include common rules.
527c478bd9Sstevel@tonic-gate#
537c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.sparc
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gate#
567c478bd9Sstevel@tonic-gate#	Define targets
577c478bd9Sstevel@tonic-gate#
587c478bd9Sstevel@tonic-gateALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
597c478bd9Sstevel@tonic-gateLINT_TARGET	= $(MODULE).lint
607c478bd9Sstevel@tonic-gateINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gate#
637c478bd9Sstevel@tonic-gate# lint pass one enforcement and OS version
647c478bd9Sstevel@tonic-gate#
657c478bd9Sstevel@tonic-gateMINOR=    echo $(RELEASE) | cut -d. -f2
667c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
677c478bd9Sstevel@tonic-gateCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP
687663b816Sml37995CPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN -DUSE_INET6
69381a2a9aSdr146992LDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti
707c478bd9Sstevel@tonic-gate
71ab25eeb5Syz155240INC_PATH += -I$(UTSBASE)/common/inet/ipf
72ab25eeb5Syz155240
737c478bd9Sstevel@tonic-gate#
74bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
75bb25c06cSjg# to investigate and remove these for maximum lint coverage.
76bb25c06cSjg# Please do not carry these forward to new Makefiles.
77bb25c06cSjg#
78bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
79bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
80bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
81bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
82bb25c06cSjg
83bb25c06cSjg#
847c478bd9Sstevel@tonic-gate#	Default build targets.
857c478bd9Sstevel@tonic-gate#
867c478bd9Sstevel@tonic-gate.KEEP_STATE:
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
897c478bd9Sstevel@tonic-gate
90*112f9fc1Syz155240all:		$(ALL_DEPS) $(SISCHECK_DEPS)
917c478bd9Sstevel@tonic-gate
92*112f9fc1Syz155240clean:		$(CLEAN_DEPS) $(SISCLEAN_DEPS)
937c478bd9Sstevel@tonic-gate
94*112f9fc1Syz155240clobber:	$(CLOBBER_DEPS) $(SISCLEAN_DEPS)
957c478bd9Sstevel@tonic-gate
967c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
1017c478bd9Sstevel@tonic-gate
102*112f9fc1Syz155240install:	$(INSTALL_DEPS) $(SISCHECK_DEPS)
103f4b3ec61Sdh155122
1047c478bd9Sstevel@tonic-gate#
1057c478bd9Sstevel@tonic-gate#	Include common targets.
1067c478bd9Sstevel@tonic-gate#
1077c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ
108