xref: /titanic_52/usr/src/uts/sparc/ipf/Makefile (revision ab073b324433ebc8947d28ade932d29d0e809795)
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#
22*ab073b32Sdr146992# Copyright 2008 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-gateCFLAGS += $(CCVERBOSE)
667c478bd9Sstevel@tonic-gateCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP
672032ea7bSmeemCPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN -DUSE_INET6
68*ab073b32Sdr146992LDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/kcf
697c478bd9Sstevel@tonic-gate
70ab25eeb5Syz155240INC_PATH += -I$(UTSBASE)/common/inet/ipf
71ab25eeb5Syz155240
727c478bd9Sstevel@tonic-gate#
73bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
74bb25c06cSjg# to investigate and remove these for maximum lint coverage.
75bb25c06cSjg# Please do not carry these forward to new Makefiles.
76bb25c06cSjg#
77bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
78bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
79bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
80bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
81bb25c06cSjg
82bb25c06cSjg#
837c478bd9Sstevel@tonic-gate#	Default build targets.
847c478bd9Sstevel@tonic-gate#
857c478bd9Sstevel@tonic-gate.KEEP_STATE:
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
887c478bd9Sstevel@tonic-gate
89112f9fc1Syz155240all:		$(ALL_DEPS) $(SISCHECK_DEPS)
907c478bd9Sstevel@tonic-gate
91112f9fc1Syz155240clean:		$(CLEAN_DEPS) $(SISCLEAN_DEPS)
927c478bd9Sstevel@tonic-gate
93112f9fc1Syz155240clobber:	$(CLOBBER_DEPS) $(SISCLEAN_DEPS)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
1007c478bd9Sstevel@tonic-gate
101112f9fc1Syz155240install:	$(INSTALL_DEPS) $(SISCHECK_DEPS)
102f4b3ec61Sdh155122
1037c478bd9Sstevel@tonic-gate#
1047c478bd9Sstevel@tonic-gate#	Include common targets.
1057c478bd9Sstevel@tonic-gate#
1067c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ
107