Makefile revision 06e46062ef4f5f4b687cbafb4518fb123fe23920
2209N/A#
2209N/A# CDDL HEADER START
2209N/A#
2209N/A# The contents of this file are subject to the terms of the
2209N/A# Common Development and Distribution License (the "License").
2209N/A# You may not use this file except in compliance with the License.
2209N/A#
2209N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2209N/A# or http://www.opensolaris.org/os/licensing.
2209N/A# See the License for the specific language governing permissions
2209N/A# and limitations under the License.
2209N/A#
2209N/A# When distributing Covered Code, include this CDDL HEADER in each
2209N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2209N/A# If applicable, add the following below this CDDL HEADER, with the
2209N/A# fields enclosed by brackets "[]" replaced with your own identifying
2209N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2209N/A#
2209N/A# CDDL HEADER END
2209N/A#
5680N/A
5680N/A#
5371N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2209N/A# Use is subject to license terms.
2209N/A#
2209N/A# ident "%Z%%M% %I% %E% SMI"
2209N/A#
2209N/A# uts/sun4u/seattle/Makefile
3441N/A#
3441N/A# This makefile drives the production of the sun4u seattle platform
3441N/A# module.
2209N/A#
2209N/A# sun4u implementation architecture dependent
5537N/A#
5537N/A
5537N/A#
5537N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5912N/A#
5600N/AUTSBASE = ../..
2209N/A
2209N/A#
2209N/A# Include common rules.
2209N/A#
2209N/Ainclude $(UTSBASE)/sun4u/seattle/Makefile.seattle
5912N/A
2209N/Adef := TARGET= def
2931N/Aall := TARGET= all
2209N/Ainstall := TARGET= install
5912N/Ainstall_h := TARGET= install_h
2899N/Aclean := TARGET= clean
4368N/Aclobber := TARGET= clobber
4368N/Alint := TARGET= lint
4368N/Alintlib := TARGET= lintlib
4368N/Amodlintlib := TARGET= modlintlib
4368N/Aclean.lint := TARGET= clean.lint
4368N/Acheck := TARGET= check
4368N/A
3062N/A#
2221N/A# Default build targets.
2221N/A#
3817N/A.KEEP_STATE:
3817N/A
3817N/Adef all clean clean.lint clobber: $(SEATTLE_KMODS)
3817N/A
2209N/Amodlintlib: $(SEATTLE_KMODS)
2209N/A
2209N/ALINKED_PLATFORMS = SUNW,Sun-Fire-V245
2209N/A
2209N/A# EXPORT DELETE START
2209N/A#
2209N/A# aes256 is delivered in the SUNWcryr package which is removed from
2209N/A# the EXPORT_SRC build.
2209N/A#
2209N/ASEATTLE_CRYPTO_LINKS += aes256
2209N/A# EXPORT DELETE END
2209N/A
2209N/Ainstall: $(ROOT_SEATTLE_DIR) \
4820N/A $(USR_SEATTLE_DIR) \
2209N/A $(USR_SEATTLE_INC_DIR) \
4820N/A $(USR_SEATTLE_SBIN_EEPROM) \
2209N/A $(USR_SEATTLE_SBIN_PRTDIAG) \
5123N/A $(USR_SEATTLE_SBIN_TRAPSTAT) \
5123N/A $(USR_SEATTLE_SBIN_FRUADM) \
5123N/A $(USR_SEATTLE_LIB_DIR) \
5123N/A $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
5123N/A $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
2209N/A $(SEATTLE_CRYPTO_LINKS) \
2209N/A .WAIT $(SEATTLE_KMODS)
2209N/A
2209N/Acheck install_h:
2209N/A
2209N/Alint: modlintlib
2221N/A
2209N/A#
2209N/A# The 'lint.platmod' target lints the seattle platform module against the sun4u
2209N/A# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
2209N/A# of minutes. Due to the low ROI, it's not run by default, but it's a good
2209N/A# idea to run this if you change os/seattle.c.
2209N/A#
2209N/ALINT_LIBS = $(LINT_LIB) \
2209N/A -L$(SEATTLE_LINT_LIB_DIR) \
2209N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
2209N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
2209N/A
2209N/Alint.platmod: modlintlib
2209N/A @-$(ECHO) "\nSeattle Platform-dependent module: global crosschecks:"
2209N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
2209N/A
2209N/A$(SEATTLE_KMODS): FRC
2209N/A @cd $@; pwd; $(MAKE) $(TARGET)
2221N/A
2221N/A$(SEATTLE_CRYPTO_LINKS): $(ROOT_SEATTLE_CRYPTO_DIR_64)
2221N/A -$(RM) $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@;
2221N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SEATTLE_CRYPTO_DIR_64)/$@
2221N/A
2221N/A# EXPORT DELETE START
2221N/A
2209N/AEXPORT_SRC:
4371N/A $(RM) Makefile+
5912N/A sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
4907N/A < Makefile > Makefile+
4371N/A $(MV) Makefile+ Makefile
2209N/A $(CHMOD) 444 Makefile
2209N/A
2209N/A# EXPORT DELETE END
4368N/A
2209N/A#
4368N/A#
2209N/A# Include common targets.
2209N/A#
2209N/Ainclude $(UTSBASE)/sun4u/seattle/Makefile.targ
2209N/A