Makefile revision 7aadd8d46c796a3216546b68c6a9d6de40f9d80d
145N/A#
145N/A# CDDL HEADER START
145N/A#
145N/A# The contents of this file are subject to the terms of the
145N/A# Common Development and Distribution License (the "License").
145N/A# You may not use this file except in compliance with the License.
145N/A#
145N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
145N/A# or http://www.opensolaris.org/os/licensing.
145N/A# See the License for the specific language governing permissions
145N/A# and limitations under the License.
145N/A#
145N/A# When distributing Covered Code, include this CDDL HEADER in each
145N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
145N/A# If applicable, add the following below this CDDL HEADER, with the
145N/A# fields enclosed by brackets "[]" replaced with your own identifying
145N/A# information: Portions Copyright [yyyy] [name of copyright owner]
145N/A#
145N/A# CDDL HEADER END
145N/A#
5630N/A#
145N/A# uts/sun4u/serengeti/Makefile
145N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
145N/A# Use is subject to license terms.
187N/A#
3996N/A#
187N/A#ident "%Z%%M% %I% %E% SMI"
187N/A#
187N/A# This makefile drives the production of the sun4u serengeti platform
145N/A# module.
187N/A#
187N/A# sun4u implementation architecture dependent
187N/A#
145N/A
1273N/A#
1273N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1273N/A#
5630N/AUTSBASE = ../..
5630N/A
5630N/A#
5630N/A# Include common rules.
5630N/A#
187N/Ainclude $(UTSBASE)/sun4u/serengeti/Makefile.serengeti
7034N/A
197N/Adef := TARGET= def
197N/Aall := TARGET= all
197N/Ainstall := TARGET= install
197N/Ainstall_h := TARGET= install_h
187N/Aclean := TARGET= clean
5630N/Aclobber := TARGET= clobber
187N/Alint := TARGET= lint
5630N/Alintlib := TARGET= lintlib
5630N/Amodlintlib := TARGET= modlintlib
5630N/Amodlist := TARGET= modlist
5630N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
5630N/Aclean.lint := TARGET= clean.lint
7034N/Acheck := TARGET= check
5630N/A
5630N/A#
5630N/A# Default build targets.
145N/A#
4409N/A.KEEP_STATE:
4409N/A
4409N/Adef all clean clean.lint clobber: genassym unix .WAIT \
4409N/A $(SERENGETI_KMODS) $(CLOSED_SERENGETI_KMODS)
4409N/A
4409N/Amodlist: unix $(SERENGETI_KMODS) $(CLOSED_SERENGETI_KMODS)
192N/A
192N/Alintlib: unix
192N/A
145N/Amodlintlib: $(SERENGETI_KMODS) $(CLOSED_SERENGETI_KMODS)
145N/A
145N/AIMPLEMENTED_PLATFORM = SUNW,Sun-Fire
187N/A
4409N/A# EXPORT DELETE START
3468N/A#
187N/A# aes256 is delivered in the SUNWcryr package which is removed from
5630N/A# the EXPORT_SRC build.
5630N/A#
5630N/ASERENGETI_CRYPTO_LINKS += aes256
5630N/A# EXPORT DELETE END
187N/A
1900N/Ainstall: $(ROOT_SERENGETI_DIR) $(USR_SERENGETI_DIR) \
191N/A $(USR_SERENGETI_INC_DIR) \
145N/A $(USR_SERENGETI_SBIN_DIR) \
5630N/A $(USR_SERENGETI_LIB_DIR) \
5630N/A $(SERENGETI_CRYPTO_LINKS) \
5630N/A genassym unix .WAIT \
5630N/A $(SERENGETI_KMODS) $(CLOSED_SERENGETI_KMODS)
5630N/A
187N/Agenassym unix $(SERENGETI_KMODS): FRC
2541N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
187N/A
187N/A$(CLOSED_SERENGETI_KMODS): FRC
187N/A cd $(CLOSED)/uts/sun4u/serengeti/$@; pwd; \
187N/A $(MAKE) $(NO_STATE) $(TARGET)
187N/A
1900N/A$(SERENGETI_CRYPTO_LINKS): $(ROOT_SERENGETI_CRYPTO_DIR_64)
1900N/A -$(RM) $(ROOT_SERENGETI_CRYPTO_DIR_64)/$@;
1900N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SERENGETI_CRYPTO_DIR_64)/$@
187N/A
187N/Ainstall_h check: FRC
187N/A @cd sys; pwd; $(MAKE) $(TARGET)
145N/A
197N/A
197N/Alint: modlintlib
197N/A
145N/A#
197N/A# The 'lint.platmod' target lints the serengeti 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/serengeti.c.
#
LINT_LIBS = $(LINT_LIB) \
-L$(SERENGETI_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) "\nSerengeti Platform-dependent module: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
# 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/serengeti/Makefile.targ