Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
779N/A# Common Development and Distribution License, Version 1.0 only
810N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# uts/sun4u/enchilada/Makefile
0N/A#
0N/A# This makefile drives the production of the sun4u enchilada platform
0N/A# module.
0N/A#
818N/A# sun4u implementation architecture dependent
0N/A#
0N/A
156N/A#
493N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
0N/A#
0N/AUTSBASE = ../..
818N/A
0N/A#
0N/A# Include common rules.
493N/A#
493N/Ainclude $(UTSBASE)/sun4u/enchilada/Makefile.enchilada
156N/A
0N/Adef := TARGET= def
0N/Aall := TARGET= all
156N/Ainstall := TARGET= install
156N/Ainstall_h := TARGET= install_h
0N/Aclean := TARGET= clean
0N/Aclobber := TARGET= clobber
818N/Alint := TARGET= lint
818N/Alintlib := TARGET= lintlib
779N/Amodlintlib := TARGET= modlintlib
364N/Amodlist := TARGET= modlist
156N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
156N/Aclean.lint := TARGET= clean.lint
0N/Acheck := TARGET= check
591N/A
591N/A#
591N/A# Default build targets.
591N/A#
591N/A.KEEP_STATE:
591N/A
591N/Adef all clean clean.lint clobber modlist: $(ENCHILADA_KMODS)
0N/A
156N/Amodlintlib: $(ENCHILADA_KMODS)
493N/A
493N/A# EXPORT DELETE START
156N/A#
493N/A# aes256 is delivered in the SUNWcryr package which is removed from
493N/A# the EXPORT_SRC build.
156N/A#
682N/AENCHILADA_CRYPTO_LINKS += aes256
493N/A# EXPORT DELETE END
493N/A
156N/Ainstall: $(ROOT_ENCHILADA_DIR) \
493N/A $(USR_ENCHILADA_DIR) \
493N/A $(USR_ENCHILADA_INC_DIR) \
493N/A $(USR_ENCHILADA_SBIN_DIR) \
364N/A $(USR_ENCHILADA_LIB_DIR) \
364N/A $(ENCHILADA_CRYPTO_LINKS) \
591N/A $(ENCHILADA_KMODS)
0N/A
0N/Acheck install_h:
493N/A
493N/Alint: modlintlib
156N/A
493N/A#
493N/A# The 'lint.platmod' target lints the enchilada platform module against the sun4u
0N/A# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
339N/A# of minutes. Due to the low ROI, it's not run by default, but it's a good
0N/A# idea to run this if you change os/enchilada.c.
0N/A#
339N/ALINT_LIBS = $(LINT_LIB) \
339N/A -L$(ENCHILADA_LINT_LIB_DIR) \
0N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
779N/A $(CLOSED_LINT_KMODS:%=-l%) \
779N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
779N/A
818N/Alint.platmod: modlintlib
818N/A @-$(ECHO) "\nEnchilada Platform-dependent module: global crosschecks:"
818N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
591N/A
591N/A$(ENCHILADA_KMODS): FRC
779N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
818N/A
591N/A$(ENCHILADA_CRYPTO_LINKS): $(ROOT_ENCHILADA_CRYPTO_DIR_64)
493N/A -$(RM) $(ROOT_ENCHILADA_CRYPTO_DIR_64)/$@;
493N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_ENCHILADA_CRYPTO_DIR_64)/$@
0N/A
364N/A# EXPORT DELETE START
0N/A
0N/AEXPORT_SRC:
493N/A $(RM) Makefile+
779N/A sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
779N/A < Makefile > Makefile+
0N/A $(MV) Makefile+ Makefile
810N/A $(CHMOD) 444 Makefile
0N/A
0N/A# EXPORT DELETE END
0N/A
0N/A#
0N/A#
0N/A# Include common targets.
591N/A#
0N/Ainclude $(UTSBASE)/sun4u/enchilada/Makefile.targ
339N/A