Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
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.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/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#
2362N/A# CDDL HEADER END
2362N/A#
2362N/A# uts/intel/Makefile
0N/A#
0N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A#
0N/A# This makefile drives the production of all implementation architecture
0N/A# independent modules for Intel processors.
0N/A
0N/AUTSBASE = ..
0N/A
0N/Ainclude Makefile.intel
0N/A
0N/ALINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
0N/A $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
0N/A $(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/A$(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(CLOSED_XMODS:lsimega=)
0N/A$(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:adpu320=)
0N/A$(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:e1000g=)
0N/A$(CLOSED_BUILD)LINT_XMODLIBS = $(LINT_CLOSED_XMOD1:nge=)
0N/A$(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
0N/A
0N/A#
0N/A# dprov is delivered in the SUNWcrtptoint package.
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
0N/A# EXPORT DELETE END
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: $(KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) $(CLOSED_XMODS) \
0N/A config $(LINT_DEPS)
0N/A
def all install clean clobber modlist: genassym $(KMODS) $(CLOSED_KMODS) \
$(SVVS) $(XMODS) $(CLOSED_XMODS) config
modlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
$(XMODS) $(CLOSED_XMODS)
genassym $(KMODS) $(SUBDIRS) config: FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(CLOSED_KMODS): FRC
cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(XMODS): FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
$(SVVS) $(CLOSED_XMODS): FRC
@if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \
cd $(CLOSED)/uts/intel/$@; pwd; \
$(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
@cd asm; pwd; $(MAKE) $(TARGET)
@cd ia32/sys; pwd; $(MAKE) $(TARGET)
@cd amd64/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