Makefile revision 0ace588102836f728a802aece5c3f380ed9a00cf
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License, Version 1.0 only
2N/A# (the "License"). You may not use this file except in compliance
2N/A# with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A#ident "%Z%%M% %I% %E% SMI"
2N/A#
2N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A# uts/sparc/Makefile
2N/A#
2N/A# This makefile drives the production of all implementation architecture
2N/A# independent modules for the SPARC processor. (For those unsure, this
2N/A# means the module will run on all SPARC processor based machines
2N/A# running SunOS.)
2N/A
2N/AUTSBASE = ..
2N/A
2N/Ainclude Makefile.sparc
2N/A
2N/ALINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
2N/A $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
2N/A
2N/A# EXPORT DELETE START
2N/ALINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
2N/ALINT_XMODLIBS = $(XMODS:e1000g=)
2N/ALINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
2N/ADRV_KMODS += dprov
2N/A#
2N/A# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*)
2N/A# They need to be listed separately since they duplicate global symbols
2N/A# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
2N/A# should not be listed in the lint target.
2N/A#
2N/ACRYPTO_EK_KMODS += aes256
2N/ACRYPTO_EK_KMODS += arcfour2048
2N/ACRYPTO_EK_KMODS += blowfish448
2N/A# EXPORT DELETE END
2N/A
2N/A#
2N/A#
2N/A#
2N/Adef := TARGET= def
2N/Aall := TARGET= all
2N/Ainstall := TARGET= install
2N/Aclean := TARGET= clean
2N/Aclobber := TARGET= clobber
2N/Alint := TARGET= lint
2N/Amodlintlib := TARGET= modlintlib
2N/Aclean.lint := TARGET= clean.lint
2N/Acheck := TARGET= check
2N/Ainstall_h := TARGET= install_h
2N/A
2N/A.KEEP_STATE:
2N/A
2N/A.PARALLEL: $(KMODS) $(SVVS) $(XMODS) config $(LINT_DEPS)
2N/A
2N/Adef all install clean clobber: $(KMODS) $(SVVS) $(XMODS) config
2N/A
2N/Amodlintlib clean.lint: $(LINT_KMODS) $(SVVS) $(XMODS)
2N/A
2N/A$(KMODS) config: FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(SVVS) $(XMODS): FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
install_h check: FRC
@cd asm; pwd; $(MAKE) $(TARGET)
@cd sys; pwd; $(MAKE) $(TARGET)
@cd v7/sys; pwd; $(MAKE) $(TARGET)
@cd v9/sys; pwd; $(MAKE) $(TARGET)
#
# Full kernel lint target.
#
LINT_TARGET = globallint
globallint:
@-$(ECHO) "\nFULL KERNEL: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
lint: modlintlib .WAIT $(LINT_DEPS)
# EXPORT DELETE START
EXPORT_SRC:
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
# EXPORT DELETE END
include ../Makefile.targ