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