Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A#ident "%Z%%M% %I% %E% SMI"
2362N/A#
0N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# uts/sparc/Makefile
0N/A#
0N/A# This makefile drives the production of all implementation architecture
0N/A# independent modules for the SPARC processor. (For those unsure, this
0N/A# means the module will run on all SPARC processor based machines
0N/A# running SunOS.)
0N/A
0N/AUTSBASE = ..
0N/A
0N/Ainclude Makefile.sparc
0N/A
0N/ALINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
0N/A $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/A
0N/A$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/A
0N/A# EXPORT DELETE START
0N/A$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/ALINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/A$(CLOSED_BUILD)CLOSED_LINT_XMODS = $(CLOSED_XMODS:e1000g=)
0N/A$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/A
0N/ADRV_KMODS += dprov
0N/A
0N/A#
0N/A# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*)
0N/A# They need to be listed separately since they duplicate global symbols
0N/A# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
0N/A# should not be listed in the lint target.
0N/A#
0N/A# Don't build these for OpenSolaris, since they will be replaced by
0N/A# binaries that are signed by Sun RE.
0N/A#
0N/A$(CLOSED_BUILD)CRYPTO_EK_KMODS += aes256
0N/A$(CLOSED_BUILD)CRYPTO_EK_KMODS += arcfour2048
0N/A$(CLOSED_BUILD)CRYPTO_EK_KMODS += blowfish448
0N/A# EXPORT DELETE END
0N/A
0N/A#
0N/A#
0N/A#
0N/Adef := TARGET= def
0N/Aall := TARGET= all
0N/Ainstall := TARGET= install
0N/Aclean := TARGET= clean
0N/Aclobber := TARGET= clobber
0N/Alint := TARGET= lint
0N/Amodlintlib := TARGET= modlintlib
0N/Amodlist := TARGET= modlist
0N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
0N/Aclean.lint := TARGET= clean.lint
0N/Acheck := TARGET= check
0N/Ainstall_h := TARGET= install_h
0N/A
0N/A.KEEP_STATE:
0N/A
0N/A.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
0N/A $(CLOSED_XMODS) config $(LINT_DEPS)
0N/A
0N/Adef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
0N/A $(XMODS) $(CLOSED_XMODS) config
0N/A
0N/Amodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
0N/A $(XMODS) $(CLOSED_LINT_XMODS)
0N/A
0N/A$(KMODS) config: FRC
0N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0N/A
0N/A$(CLOSED_KMODS): FRC
0N/A cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0N/A
0N/A$(XMODS): FRC
0N/A @if [ -f $@/Makefile ]; then \
0N/A cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
0N/A else \
0N/A true; \
0N/A fi
0N/A
0N/A$(SVVS) $(CLOSED_XMODS): FRC
0N/A @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
0N/A cd $(CLOSED)/uts/sparc/$@; pwd; \
0N/A $(MAKE) $(NO_STATE) $(TARGET); \
0N/A else \
0N/A true; \
0N/A fi
0N/A
0N/Ainstall_h check: FRC
0N/A @cd asm; pwd; $(MAKE) $(TARGET)
0N/A @cd sys; pwd; $(MAKE) $(TARGET)
0N/A @cd v7/sys; pwd; $(MAKE) $(TARGET)
0N/A @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