Makefile revision 112f9fc1e25dcac8b980e034e763f96fb9736261
970N/A#
970N/A# CDDL HEADER START
970N/A#
970N/A# The contents of this file are subject to the terms of the
1379N/A# Common Development and Distribution License (the "License").
970N/A# You may not use this file except in compliance with the License.
970N/A#
970N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970N/A# or http://www.opensolaris.org/os/licensing.
970N/A# See the License for the specific language governing permissions
970N/A# and limitations under the License.
970N/A#
970N/A# When distributing Covered Code, include this CDDL HEADER in each
970N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
970N/A# If applicable, add the following below this CDDL HEADER, with the
970N/A# fields enclosed by brackets "[]" replaced with your own identifying
970N/A# information: Portions Copyright [yyyy] [name of copyright owner]
970N/A#
970N/A# CDDL HEADER END
970N/A#
970N/A#
970N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
970N/A# Use is subject to license terms.
970N/A#
970N/A#ident "%Z%%M% %I% %E% SMI"
970N/A#
970N/A# uts/sparc/ipf/Makefile
970N/A#
970N/A#
970N/A# This makefile drives the production of the ipf driver
970N/A# kernel module.
970N/A#
970N/A# sparc architecture dependent
970N/A#
970N/A
970N/A#
970N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
970N/A#
970N/AUTSBASE = ../..
970N/A
970N/A#
970N/A# Define the module and object file sets.
970N/A#
1105N/AMODULE = ipf
970N/AOBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%)
970N/ALINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
970N/AROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
970N/ACONF_SRCDIR = $(UTSBASE)/common/inet/ipf
970N/A
970N/A#
970N/A# Include common rules.
970N/A#
970N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
970N/A
970N/A#
970N/A# Define targets
970N/A#
970N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
970N/ALINT_TARGET = $(MODULE).lint
970N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
970N/A
970N/A#
970N/A# lint pass one enforcement and OS version
970N/A#
970N/AMINOR= echo $(RELEASE) | cut -d. -f2
970N/ACFLAGS += $(CCVERBOSE)
970N/ACPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP
970N/ACPPFLAGS += -DSUNDDI -DSOLARIS2=$(MINOR:sh) -DIRE_ILL_CN -DUSE_INET6
970N/ALDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti
1130N/A
970N/AINC_PATH += -I$(UTSBASE)/common/inet/ipf
970N/A
970N/A#
970N/A# For now, disable these lint checks; maintainers should endeavor
970N/A# to investigate and remove these for maximum lint coverage.
970N/A# Please do not carry these forward to new Makefiles.
970N/A#
970N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
970N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
970N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
970N/ALINTTAGS += -erroff=E_STATIC_UNUSED
970N/A
970N/A#
970N/A# Default build targets.
970N/A#
970N/A.KEEP_STATE:
970N/A
970N/Adef: $(DEF_DEPS)
970N/A
970N/Aall: $(ALL_DEPS) $(SISCHECK_DEPS)
970N/A
970N/Aclean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
970N/A
970N/Aclobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
970N/A
970N/Alint: $(LINT_DEPS)
970N/A
970N/Amodlintlib: $(MODLINTLIB_DEPS)
1105N/A
1105N/Aclean.lint: $(CLEAN_LINT_DEPS)
970N/A
1105N/Ainstall: $(INSTALL_DEPS) $(SISCHECK_DEPS)
970N/A
970N/A#
970N/A# Include common targets.
970N/A#
970N/Ainclude $(UTSBASE)/sparc/Makefile.targ
970N/A