Makefile revision d58fda4376e4bf67072ce2e69f6f47036f9dbb68
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Use is subject to license terms.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# ident "%Z%%M% %I% %E% SMI"
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# uts/sun4u/boston/Makefile
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# This makefile drives the production of the sun4u boston platform
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# module.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# sun4u implementation architecture dependent
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonUTSBASE = ../..
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Include common rules.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinclude $(UTSBASE)/sun4u/boston/Makefile.boston
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleydef := TARGET= def
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyall := TARGET= all
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinstall := TARGET= install
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinstall_h := TARGET= install_h
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyclean := TARGET= clean
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyclobber := TARGET= clobber
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylint := TARGET= lint
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylintlib := TARGET= lintlib
94bd918b63001277f1b28ae4581645f8a835688fBob Halleymodlintlib := TARGET= modlintlib
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyclean.lint := TARGET= clean.lint
94bd918b63001277f1b28ae4581645f8a835688fBob Halleycheck := TARGET= check
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Default build targets.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley.KEEP_STATE:
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleydef all clean clean.lint clobber: $(BOSTON_KMODS)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleymodlintlib: $(BOSTON_KMODS)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# EXPORT DELETE START
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# aes256 is delivered in the SUNWcryr package which is removed from
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# the EXPORT_SRC build.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyBOSTON_CRYPTO_LINKS += aes256
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# EXPORT DELETE END
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinstall: $(ROOT_BOSTON_DIR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_DIR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_INC_DIR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_SBIN_EEPROM) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_SBIN_PRTDIAG) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_SBIN_TRAPSTAT) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(USR_BOSTON_LIB_DIR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(BOSTON_CRYPTO_LINKS) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley .WAIT $(BOSTON_KMODS)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleycheck install_h:
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylint: modlintlib
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# The 'lint.platmod' target lints the boston platform module against the sun4u
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# of minutes. Due to the low ROI, it's not run by default, but it's a good
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# idea to run this if you change os/boston.c.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob HalleyLINT_LIBS = $(LINT_LIB) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley -L$(BOSTON_LINT_LIB_DIR) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
94bd918b63001277f1b28ae4581645f8a835688fBob Halley -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halleylint.platmod: modlintlib
94bd918b63001277f1b28ae4581645f8a835688fBob Halley @-$(ECHO) "\nBoston Platform-dependent module: global crosschecks:"
94bd918b63001277f1b28ae4581645f8a835688fBob Halley @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley$(BOSTON_KMODS): FRC
94bd918b63001277f1b28ae4581645f8a835688fBob Halley @cd $@; pwd; $(MAKE) $(TARGET)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley$(BOSTON_CRYPTO_LINKS): $(ROOT_BOSTON_CRYPTO_DIR_64)
94bd918b63001277f1b28ae4581645f8a835688fBob Halley -$(RM) $(ROOT_BOSTON_CRYPTO_DIR_64)/$@;
94bd918b63001277f1b28ae4581645f8a835688fBob Halley $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_BOSTON_CRYPTO_DIR_64)/$@
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews# EXPORT DELETE START
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark AndrewsEXPORT_SRC:
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews $(RM) Makefile+
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews < Makefile > Makefile+
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews $(MV) Makefile+ Makefile
7389e8330d62a059b8923fb8ca6f933caeb559d9Mark Andrews $(CHMOD) 444 Makefile
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# EXPORT DELETE END
94bd918b63001277f1b28ae4581645f8a835688fBob Halley
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# Include common targets.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley#
94bd918b63001277f1b28ae4581645f8a835688fBob Halleyinclude $(UTSBASE)/sun4u/boston/Makefile.targ
94bd918b63001277f1b28ae4581645f8a835688fBob Halley