Makefile revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# uts/intel/ipsecah/Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the ipsecah driver
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# kernel module.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# intel implementation architecture dependent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntUTSBASE = ../..
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define the module and object file sets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMODULE = ipsecah
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox UserOBJECTS = $(IPSECAH_OBJS:%=$(OBJS_DIR)/%)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTS = $(IPSECAH_OBJS:%.o=$(LINTS_DIR)/%.ln)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntROOTLINK = $(ROOT_STRMOD_DIR)/$(MODULE)
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserCONF_SRCDIR = $(UTSBASE)/common/inet/ip
ffe29868b4bbc64953fc5d0de51f988c20158967Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Include common rules.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(UTSBASE)/intel/Makefile.intel
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
f9ce6280cec79deb16ff6d9807aa493ff23e10d9Tinderbox User# Define targets
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserALL_TARGET = $(BINARY) $(SRC_CONFFILE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINT_TARGET = $(MODULE).lint
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) $(ROOT_CONFFILE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User# Linkage dependencies
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User#
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox UserLDFLAGS += -dy -Ndrv/ip -Ndrv/tcp -Nmisc/kcf
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# For now, disable these lint checks; maintainers should endeavor
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# to investigate and remove these for maximum lint coverage.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Please do not carry these forward to new Makefiles.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Default build targets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User.KEEP_STATE:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userdef: $(DEF_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox Userall: $(ALL_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox Userclean: $(CLEAN_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox Userclobber: $(CLOBBER_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userlint: $(LINT_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Userinstall: $(INSTALL_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User$(ROOTLINK): $(ROOT_STRMOD_DIR) $(ROOTMODULE)
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User -$(RM) $@; ln $(ROOTMODULE) $@
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Usersis_check: sis_check.obj
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox Usersis_check.obj: $(ALL_DEPS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User @$(GREP) -v '#' $(MODULE).objt-symbols.obj64 |$(GREP) . |$(SORT) -u \
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User > $(MODULE).symbols.tmp
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User @$(NM) obj64/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User $(CUT) -d'|' -f8 |$(SORT) -u > $(MODULE).symbols.tmp.new
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User -@$(DIFF) $(MODULE).symbols.tmp $(MODULE).symbols.tmp.new
8a48b6b9b6fa8486f24b22d1972b2b6ebb36a4a4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Include common targets.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox Userinclude $(UTSBASE)/intel/Makefile.targ
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt