xref: /titanic_52/usr/src/uts/sparc/ipf/Makefile (revision 381a2a9a387f449fab7d0c7e97c4184c26963abf)
17c478bd9Sstevel@tonic-gate#
2*381a2a9aSdr146992# CDDL HEADER START
3*381a2a9aSdr146992#
4*381a2a9aSdr146992# The contents of this file are subject to the terms of the
5*381a2a9aSdr146992# Common Development and Distribution License (the "License").
6*381a2a9aSdr146992# You may not use this file except in compliance with the License.
7*381a2a9aSdr146992#
8*381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing.
10*381a2a9aSdr146992# See the License for the specific language governing permissions
11*381a2a9aSdr146992# and limitations under the License.
12*381a2a9aSdr146992#
13*381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each
14*381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the
16*381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying
17*381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner]
18*381a2a9aSdr146992#
19*381a2a9aSdr146992# CDDL HEADER END
20*381a2a9aSdr146992#
21*381a2a9aSdr146992#
22ab25eeb5Syz155240# Copyright 2006 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
69*381a2a9aSdr146992LDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti
707c478bd9Sstevel@tonic-gate
71ab25eeb5Syz155240INC_PATH += -I$(UTSBASE)/common/inet/ipf
72ab25eeb5Syz155240
737c478bd9Sstevel@tonic-gate#
747c478bd9Sstevel@tonic-gate#	Default build targets.
757c478bd9Sstevel@tonic-gate#
767c478bd9Sstevel@tonic-gate.KEEP_STATE:
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gatedef:		$(DEF_DEPS)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gateall:		$(ALL_DEPS)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gateclean:		$(CLEAN_DEPS)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gateclobber:	$(CLOBBER_DEPS)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gatelint:		$(LINT_DEPS)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gatemodlintlib:	$(MODLINTLIB_DEPS)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gateclean.lint:	$(CLEAN_LINT_DEPS)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gateinstall:	$(INSTALL_DEPS)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate#
957c478bd9Sstevel@tonic-gate#	Include common targets.
967c478bd9Sstevel@tonic-gate#
977c478bd9Sstevel@tonic-gateinclude $(UTSBASE)/sparc/Makefile.targ
98