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