Makefile revision 1e49577a7fcde812700ded04431b49d67cc57d6d
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# uts/sun4u/boston/Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This makefile drives the production of the sun4u boston platform
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# module.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# sun4u implementation architecture dependent
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Path to the base of the uts directory tree (usually /usr/src/uts).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUTSBASE = ../..
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include common rules.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(UTSBASE)/sun4u/boston/Makefile.boston
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedef := TARGET= def
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall := TARGET= all
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall := TARGET= install
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall_h := TARGET= install_h
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean := TARGET= clean
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclobber := TARGET= clobber
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint := TARGET= lint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelintlib := TARGET= lintlib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlintlib := TARGET= modlintlib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlist := TARGET= modlist
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlist := NO_STATE= -K $$MODSTATE$$$$
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean.lint := TARGET= clean.lint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecheck := TARGET= check
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Default build targets.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedef all clean clean.lint clobber modlist: $(BOSTON_KMODS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlintlib: $(BOSTON_KMODS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinstall: $(ROOT_BOSTON_DIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(USR_BOSTON_DIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(USR_BOSTON_INC_DIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(USR_BOSTON_SBIN_PRTDIAG) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(USR_BOSTON_SBIN_FRUADM) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(USR_BOSTON_LIB_DIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(BOSTON_CRYPTO_LINKS) \
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe .WAIT $(BOSTON_KMODS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortecheck install_h:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: modlintlib
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# The 'lint.platmod' target lints the boston platform module against the sun4u
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# of minutes. Due to the low ROI, it's not run by default, but it's a good
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# idea to run this if you change os/boston.c.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINT_LIBS = $(LINT_LIB) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -L$(BOSTON_LINT_LIB_DIR) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CLOSED_LINT_KMODS:%=-l%) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint.platmod: modlintlib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @-$(ECHO) "\nBoston Platform-dependent module: global crosschecks:"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(BOSTON_KMODS): FRC
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(BOSTON_CRYPTO_LINKS): $(ROOT_BOSTON_CRYPTO_DIR_64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte -$(RM) $(ROOT_BOSTON_CRYPTO_DIR_64)/$@;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_BOSTON_CRYPTO_DIR_64)/$@
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include common targets.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(UTSBASE)/sun4u/boston/Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte