Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
18727N/A#
17229N/A# CDDL HEADER START
17229N/A#
17229N/A# The contents of this file are subject to the terms of the
17229N/A# Common Development and Distribution License (the "License").
12705N/A# You may not use this file except in compliance with the License.
12679N/A#
12679N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12679N/A# or http://www.opensolaris.org/os/licensing.
12679N/A# See the License for the specific language governing permissions
12679N/A# and limitations under the License.
12679N/A#
12679N/A# When distributing Covered Code, include this CDDL HEADER in each
12679N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
12679N/A# If applicable, add the following below this CDDL HEADER, with the
12679N/A# fields enclosed by brackets "[]" replaced with your own identifying
14320N/A# information: Portions Copyright [yyyy] [name of copyright owner]
12679N/A#
14320N/A# CDDL HEADER END
14320N/A#
12679N/A
14320N/A#
14320N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
12679N/A# Use is subject to license terms.
14340N/A#
14320N/A# ident "%Z%%M% %I% %E% SMI"
14320N/A#
14320N/A# uts/sun4u/seattle/Makefile
14320N/A#
14320N/A# This makefile drives the production of the sun4u seattle platform
14320N/A# module.
14320N/A#
14320N/A# sun4u implementation architecture dependent
12679N/A#
14320N/A
18988N/A#
18988N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
18988N/A#
18988N/AUTSBASE = ../..
18988N/A
18988N/A#
18988N/A# Include common rules.
18988N/A#
18988N/Ainclude $(UTSBASE)/sun4u/seattle/Makefile.seattle
18988N/A
18988N/Adef := TARGET= def
18988N/Aall := TARGET= all
18988N/Ainstall := TARGET= install
18988N/Ainstall_h := TARGET= install_h
18988N/Aclean := TARGET= clean
18988N/Aclobber := TARGET= clobber
18988N/Alint := TARGET= lint
18988N/Alintlib := TARGET= lintlib
18988N/Amodlintlib := TARGET= modlintlib
18988N/Amodlist := TARGET= modlist
18988N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
18988N/Aclean.lint := TARGET= clean.lint
18988N/Acheck := TARGET= check
18988N/A
18988N/A#
18988N/A# Default build targets.
18988N/A#
18988N/A.KEEP_STATE:
18988N/A
18988N/Adef all clean clean.lint clobber modlist: $(SEATTLE_KMODS)
18988N/A
18988N/Amodlintlib: $(SEATTLE_KMODS)
18988N/A
18988N/ALINKED_PLATFORMS = SUNW,Sun-Fire-V245
18988N/A
18988N/A# EXPORT DELETE START
18988N/A#
18988N/A# aes256 is delivered in the SUNWcryr package which is removed from
18988N/A# the EXPORT_SRC build.
18988N/A#
18988N/ASEATTLE_CRYPTO_LINKS += aes256
18988N/A# EXPORT DELETE END
18988N/A
18988N/Ainstall: $(ROOT_SEATTLE_DIR) \
18988N/A $(USR_SEATTLE_DIR) \
18988N/A $(USR_SEATTLE_INC_DIR) \
18988N/A $(USR_SEATTLE_SBIN_PRTDIAG) \
18988N/A $(USR_SEATTLE_SBIN_TRAPSTAT) \
18988N/A $(USR_SEATTLE_SBIN_FRUADM) \
18988N/A $(USR_SEATTLE_LIB_DIR) \
18988N/A $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
18988N/A $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
18988N/A $(SEATTLE_CRYPTO_LINKS) \
18988N/A .WAIT $(SEATTLE_KMODS)
18988N/A
18988N/Acheck install_h:
18988N/A
18988N/Alint: modlintlib
18988N/A
18988N/A#
18988N/A# The 'lint.platmod' target lints the seattle platform module against the sun4u
18988N/A# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
18988N/A# of minutes. Due to the low ROI, it's not run by default, but it's a good
18988N/A# idea to run this if you change os/seattle.c.
18988N/A#
18988N/ALINT_LIBS = $(LINT_LIB) \
18988N/A -L$(SEATTLE_LINT_LIB_DIR) \
18988N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
18988N/A $(CLOSED_LINT_KMODS:%=-l%) \
18988N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
18988N/A
18988N/Alint.platmod: modlintlib
18988N/A @-$(ECHO) "\nSeattle Platform-dependent module: global crosschecks:"
18988N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
12679N/A
14320N/A$(SEATTLE_KMODS): FRC
14320N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(SEATTLE_CRYPTO_LINKS): $(ROOT_SEATTLE_CRYPTO_DIR_64)
-$(RM) $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@;
$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@
# 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 common targets.
#
include $(UTSBASE)/sun4u/seattle/Makefile.targ