Makefile revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# CDDL HEADER START
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# The contents of this file are subject to the terms of the
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# Common Development and Distribution License (the "License").
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# You may not use this file except in compliance with the License.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# or http://www.opensolaris.org/os/licensing.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# See the License for the specific language governing permissions
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# and limitations under the License.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# When distributing Covered Code, include this CDDL HEADER in each
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# If applicable, add the following below this CDDL HEADER, with the
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# fields enclosed by brackets "[]" replaced with your own identifying
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# information: Portions Copyright [yyyy] [name of copyright owner]
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# CDDL HEADER END
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# Use is subject to license terms.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# ident "%Z%%M% %I% %E% SMI"
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# This makefile drives the production of the ipsecesp driver
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# kernel module.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# sparc architecture dependent
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# Path to the base of the uts directory tree (usually /usr/src/uts).
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorUTSBASE = ../..
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major# Define the module and object file sets.
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorMODULE = ipsecesp
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorOBJECTS = $(IPSECESP_OBJS:%=$(OBJS_DIR)/%)
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorLINTS = $(IPSECESP_OBJS:%.o=$(LINTS_DIR)/%.ln)
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter MajorCONF_SRCDIR = $(UTSBASE)/common/inet/ip
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major
fd87861d2571a856db2b9d6dc149c3b64e989cc9Peter Major#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
#
# Linkage dependencies
#
LDFLAGS += -dy -Ndrv/ip -Ndrv/ipsecah -Nmisc/kcf
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# 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
#
# 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)
$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
-$(RM) $@; ln $(ROOTMODULE) $@
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