Makefile revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the configured tunneling
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# streams kernel module.
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# SPARC architecture dependent
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define the module and object file sets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Extra for $(MODULE).check target
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Need to remove ipddi.o since it has non-static defines for _init etc.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinEXTRA_CHECK_OBJS = $(IP_CHECK_OBJS:%=../ip/$(OBJS_DIR)/%)
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox User# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
ddbd14ec13b6dc0130a94b46b6a3156549cb9911Tinderbox User# lint pass one enforcement
88a2182a1ad4fc7af07272af6b05b74db7f28e52Tinderbox User# depends on ip and ip6
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# For now, disable these lint checks; maintainers should endeavor
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# to investigate and remove these for maximum lint coverage.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Please do not carry these forward to new Makefiles.
88a2182a1ad4fc7af07272af6b05b74db7f28e52Tinderbox User# Default build targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein @$(GREP) -v '#' $(MODULE).objt-symbols.obj64 |$(GREP) . |$(SORT) -u \
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews @$(NM) obj64/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews $(CUT) -d'|' -f8 |$(SORT) -u > $(MODULE).symbols.tmp.new
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein -@$(DIFF) $(MODULE).symbols.tmp $(MODULE).symbols.tmp.new
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.