Makefile revision b6c3f7863936abeae522e48a13887dddeb691a45
278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A#
3996N/A
278N/A#
278N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
278N/A# Use is subject to license terms.
1273N/A#
4018N/A# ident "%Z%%M% %I% %E% SMI"
618N/A#
1273N/A# uts/sun4u/boston/Makefile
1273N/A#
278N/A# This makefile drives the production of the sun4u boston platform
844N/A# module.
4018N/A#
1665N/A# sun4u implementation architecture dependent
1665N/A#
1273N/A
278N/A#
4018N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
3661N/A#
3996N/AUTSBASE = ../..
3996N/A
3996N/A#
4018N/A# Include common rules.
278N/A#
4018N/Ainclude $(UTSBASE)/sun4u/boston/Makefile.boston
4018N/A
4018N/Adef := TARGET= def
278N/Aall := TARGET= all
1665N/Ainstall := TARGET= install
1665N/Ainstall_h := TARGET= install_h
4018N/Aclean := TARGET= clean
4018N/Aclobber := TARGET= clobber
4018N/Alint := TARGET= lint
278N/Alintlib := TARGET= lintlib
1665N/Amodlintlib := TARGET= modlintlib
278N/Amodlist := TARGET= modlist
4018N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
4018N/Aclean.lint := TARGET= clean.lint
4018N/Acheck := TARGET= check
4018N/A
278N/A#
278N/A# Default build targets.
1665N/A#
278N/A.KEEP_STATE:
278N/A
4018N/Adef all clean clean.lint clobber modlist: $(BOSTON_KMODS)
4018N/A
3996N/Amodlintlib: $(BOSTON_KMODS)
3996N/A
3996N/Ainstall: $(ROOT_BOSTON_DIR) \
3996N/A $(USR_BOSTON_DIR) \
4561N/A $(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)/$@
#
#
# Include common targets.
#
include $(UTSBASE)/sun4u/boston/Makefile.targ