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