Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
248N/A#
248N/A# CDDL HEADER START
248N/A#
248N/A# The contents of this file are subject to the terms of the
248N/A# Common Development and Distribution License, Version 1.0 only
248N/A# (the "License"). You may not use this file except in compliance
248N/A# with the License.
248N/A#
248N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
248N/A# or http://www.opensolaris.org/os/licensing.
248N/A# See the License for the specific language governing permissions
248N/A# and limitations under the License.
248N/A#
248N/A# When distributing Covered Code, include this CDDL HEADER in each
248N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
248N/A# If applicable, add the following below this CDDL HEADER, with the
248N/A# fields enclosed by brackets "[]" replaced with your own identifying
248N/A# information: Portions Copyright [yyyy] [name of copyright owner]
248N/A#
248N/A# CDDL HEADER END
248N/A#
248N/A#
1780N/A# uts/sun4u/taco/Makefile
248N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
248N/A# Use is subject to license terms.
814N/A#
814N/A#pragma ident "%Z%%M% %I% %E% SMI"
1780N/A#
814N/A# This makefile drives the production of the sun4u taco platform
248N/A# module.
248N/A#
248N/A# sun4u implementation architecture dependent
248N/A#
248N/A
248N/A#
248N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
844N/A#
844N/AUTSBASE = ../..
248N/A
1258N/A#
248N/A# Include common rules.
248N/A#
248N/Ainclude $(UTSBASE)/sun4u/taco/Makefile.taco
248N/A
248N/Adef := TARGET= def
248N/Aall := TARGET= all
248N/Ainstall := TARGET= install
248N/Ainstall_h := TARGET= install_h
248N/Aclean := TARGET= clean
248N/Aclobber := TARGET= clobber
690N/Alint := TARGET= lint
248N/Alintlib := TARGET= lintlib
248N/Amodlintlib := TARGET= modlintlib
690N/Amodlist := TARGET= modlist
248N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
248N/Aclean.lint := TARGET= clean.lint
248N/Acheck := TARGET= check
248N/A
248N/A#
248N/A# Default build targets.
248N/A#
248N/A.KEEP_STATE:
248N/A
248N/Adef all clean clean.lint clobber modlist: $(TACO_KMODS)
248N/A
248N/Amodlintlib: $(TACO_KMODS)
248N/A
248N/A# EXPORT DELETE START
248N/A#
248N/A# aes256 is delivered in the SUNWcryr package which is removed from
248N/A# the EXPORT_SRC build.
248N/A#
248N/ATACO_CRYPTO_LINKS += aes256
248N/A# EXPORT DELETE END
248N/A
248N/Ainstall: $(ROOT_TACO_DIR) \
248N/A $(USR_TACO_DIR) \
248N/A $(USR_TACO_INC_DIR) \
248N/A $(USR_TACO_SBIN_DIR) \
248N/A $(USR_TACO_LIB_DIR) \
248N/A $(TACO_CRYPTO_LINKS) \
248N/A $(TACO_KMODS)
check install_h:
lint: modlintlib
#
# The 'lint.platmod' target lints the taco 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/taco.c.
#
LINT_LIBS = $(LINT_LIB) \
-L$(TACO_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) "\nTaco Platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
$(TACO_KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(TACO_CRYPTO_LINKS): $(ROOT_TACO_CRYPTO_DIR_64)
-$(RM) $(ROOT_TACO_CRYPTO_DIR_64)/$@;
$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_TACO_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/taco/Makefile.targ