Makefile revision 0ace588102836f728a802aece5c3f380ed9a00cf
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License, Version 1.0 only
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# (the "License"). You may not use this file except in compliance
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# with the License.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# See the License for the specific language governing permissions
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# and limitations under the License.
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#ident "%Z%%M% %I% %E% SMI"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This makefile drives the production of all implementation architecture
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# independent modules for the SPARC processor. (For those unsure, this
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# means the module will run on all SPARC processor based machines
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# running SunOS.)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# EXPORT DELETE START
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsLINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# They need to be listed separately since they duplicate global symbols
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# should not be listed in the lint target.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# EXPORT DELETE END
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User.PARALLEL: $(KMODS) $(SVVS) $(XMODS) config $(LINT_DEPS)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsdef all install clean clobber: $(KMODS) $(SVVS) $(XMODS) config
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsmodlintlib clean.lint: $(LINT_KMODS) $(SVVS) $(XMODS)
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User @if [ -f $@/Makefile ]; then \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Full kernel lint target.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# EXPORT DELETE START
415d630b6309922caee8469384a6fab75cf05032Mark Andrews sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# EXPORT DELETE END