Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
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# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5371N/A#
2209N/A#pragma ident "%Z%%M% %I% %E% SMI"
2209N/A#
2209N/A# This makefile drives the production of the sun4u schumacher platform
2209N/A# module.
2209N/A#
3441N/A# sun4u implementation architecture dependent
3441N/A#
3441N/A
2209N/A#
2209N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
5537N/A#
5537N/AUTSBASE = ../..
5537N/A
5537N/A#
6982N/A# Include common rules.
5600N/A#
2209N/Ainclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
2209N/A
2209N/Adef := TARGET= def
2209N/Aall := TARGET= all
2209N/Ainstall := TARGET= install
6982N/Ainstall_h := TARGET= install_h
2209N/Aclean := TARGET= clean
2931N/Aclobber := TARGET= clobber
2209N/Alint := TARGET= lint
6982N/Alintlib := TARGET= lintlib
2899N/Amodlintlib := TARGET= modlintlib
4368N/Amodlist := TARGET= modlist
4368N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
4368N/Aclean.lint := TARGET= clean.lint
4368N/Acheck := TARGET= check
4368N/A
4368N/A#
4368N/A# Default build targets.
3062N/A#
2221N/A.KEEP_STATE:
2221N/A
3817N/Adef all clean clean.lint clobber modlist: $(SCHUMACHER_KMODS)
3817N/A
3817N/Amodlintlib: $(SCHUMACHER_KMODS)
3817N/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/ASCHUMACHER_CRYPTO_LINKS += aes256
2209N/A# EXPORT DELETE END
2209N/A
2209N/Ainstall: $(ROOT_SCHUMACHER_DIR) \
2209N/A $(USR_SCHUMACHER_DIR) \
2209N/A $(USR_SCHUMACHER_INC_DIR) \
2209N/A $(USR_SCHUMACHER_SBIN_DIR) \
2209N/A $(USR_SCHUMACHER_SBIN_PRTDIAG) \
4820N/A $(USR_SCHUMACHER_SBIN_TRAPSTAT) \
2209N/A $(USR_SCHUMACHER_SBIN_FRUADM) \
4820N/A $(USR_SCHUMACHER_LIB_DIR) \
2209N/A $(SCHUMACHER_CRYPTO_LINKS) \
5123N/A $(SCHUMACHER_KMODS)
5123N/A
5123N/Acheck install_h:
5123N/A
5123N/Alint: modlintlib
2209N/A
2209N/A#
2209N/A# The 'lint.platmod' target lints the schumacher 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.
2209N/A#
2209N/ALINT_LIBS = $(LINT_LIB) \
2209N/A -L$(SCHUMACHER_LINT_LIB_DIR) \
6017N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
2209N/A $(CLOSED_LINT_KMODS:%=-l%) \
2209N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
2209N/A
2209N/Alint.platmod: modlintlib
2209N/A @-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:"
2209N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
2209N/A
2209N/A$(SCHUMACHER_KMODS): FRC
2209N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
2209N/A
2209N/A$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
2209N/A -$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
2209N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
2209N/A
2209N/A# EXPORT DELETE START
2221N/A
2221N/AEXPORT_SRC:
2221N/A $(RM) Makefile+
2209N/A sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
4371N/A < Makefile > Makefile+
6962N/A $(MV) Makefile+ Makefile
4907N/A $(CHMOD) 444 Makefile
4371N/A
2209N/A# EXPORT DELETE END
2209N/A
2209N/A#
4368N/A# Include common targets.
2209N/A#
4368N/Ainclude $(UTSBASE)/sun4u/schumacher/Makefile.targ
2209N/A