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