Makefile revision 112f9fc1e25dcac8b980e034e763f96fb9736261
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# CDDL HEADER START
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# The contents of this file are subject to the terms of the
842ae4bd224140319ae7feec1872b93dfd491143fielding# Common Development and Distribution License (the "License").
842ae4bd224140319ae7feec1872b93dfd491143fielding# You may not use this file except in compliance with the License.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# or http://www.opensolaris.org/os/licensing.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# See the License for the specific language governing permissions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# and limitations under the License.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# When distributing Covered Code, include this CDDL HEADER in each
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# If applicable, add the following below this CDDL HEADER, with the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# fields enclosed by brackets "[]" replaced with your own identifying
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# information: Portions Copyright [yyyy] [name of copyright owner]
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
e8f95a682820a599fe41b22977010636be5c2717jim# CDDL HEADER END
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
e8f95a682820a599fe41b22977010636be5c2717jim# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Use is subject to license terms.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
b6055b7832a0e4d0818416252fff5925aaebae4brbb#ident "%Z%%M% %I% %E% SMI"
1b21d7b3d97def358b2e923655edeb16613a1c31gstein#
1b21d7b3d97def358b2e923655edeb16613a1c31gstein# uts/intel/ipf/Makefile
1b21d7b3d97def358b2e923655edeb16613a1c31gstein#
1b21d7b3d97def358b2e923655edeb16613a1c31gstein# This makefile drives the production of the ipf driver
1b21d7b3d97def358b2e923655edeb16613a1c31gstein# kernel module.
2d71630471d1c23f0137309e3c3957c633ecbfd6rbb#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# intel architecture dependent
449efc4dc68e42cc4421d15498a689618aab5dc3coar#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
fd0edaa8e3d4dd67d0604ccef2e96b071db96643fielding#
a877b7d5d03f91d6c93076d9ccf14469c70c648dcoar# Path to the base of the uts directory tree (usually /usr/src/uts).
1b21d7b3d97def358b2e923655edeb16613a1c31gstein#
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingUTSBASE = ../..
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
a7ad08f37d876bde1a32f0cf793f4799536ab1a5ben#
a7ad08f37d876bde1a32f0cf793f4799536ab1a5ben# Define the module and object file sets.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonMODULE = ipf
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantzOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%)
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingCONF_SRCDIR = $(UTSBASE)/common/inet/ipf
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Include common rules.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldinginclude $(UTSBASE)/intel/Makefile.intel
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Define targets
3d96ee83babeec32482c9082c9426340cee8c44dwrowe#
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingALL_TARGET = $(BINARY) $(SRC_CONFFILE)
1ccd992d37d62c8cb2056126f2234f64ec189bfddougmLINT_TARGET = $(MODULE).lint
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
1ccd992d37d62c8cb2056126f2234f64ec189bfddougmMINOR= echo $(RELEASE) | cut -d. -f2
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingCPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
066877f1a045103acfdd376d48cdd473c33f409bdougmCPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN
066877f1a045103acfdd376d48cdd473c33f409bdougmLDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingINC_PATH += -I$(UTSBASE)/common/inet/ipf
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# For now, disable these lint checks; maintainers should endeavor
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# to investigate and remove these for maximum lint coverage.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm# Please do not carry these forward to new Makefiles.
066877f1a045103acfdd376d48cdd473c33f409bdougm#
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTTAGS += -erroff=E_STATIC_UNUSED
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
1ccd992d37d62c8cb2056126f2234f64ec189bfddougmLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm# Default build targets.
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantz#
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantz.KEEP_STATE:
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
066877f1a045103acfdd376d48cdd473c33f409bdougmdef: $(DEF_DEPS)
066877f1a045103acfdd376d48cdd473c33f409bdougm
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingall: $(ALL_DEPS) $(SISCHECK_DEPS)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
1ccd992d37d62c8cb2056126f2234f64ec189bfddougmlint: $(LINT_DEPS)
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantz
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantzmodlintlib: $(MODLINTLIB_DEPS)
066877f1a045103acfdd376d48cdd473c33f409bdougm
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingclean.lint: $(CLEAN_LINT_DEPS)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldinginstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
4d7e28c869788fb00bffda29a67f1b10e19f159dnd
4d7e28c869788fb00bffda29a67f1b10e19f159dnd#
4d7e28c869788fb00bffda29a67f1b10e19f159dnd# Include common targets.
a7ad08f37d876bde1a32f0cf793f4799536ab1a5ben#
36d38d22e0d385db01f5773a579f44b8f02e4b1fsfinclude $(UTSBASE)/intel/Makefile.targ
076ae4ad21f0b3f25e2feabd9886b9500929eb2ejerenkrantz