Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License, Version 1.0 only
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# (the "License"). You may not use this file except in compliance
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# uts/sun4u/mpxu/Makefile
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#ident "%Z%%M% %I% %E% SMI"
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# This makefile drives the production of the sun4u mpxu platform
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# module.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# sun4u implementation architecture dependent
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Path to the base of the uts directory tree (usually /usr/src/uts).
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowUTSBASE = ../..
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common rules.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinclude $(UTSBASE)/sun4u/mpxu/Makefile.mpxu
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowdef := TARGET= def
4bff34e37def8a90f9194d81bc345c52ba20086athurlowall := TARGET= all
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall := TARGET= install
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall_h := TARGET= install_h
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean := TARGET= clean
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclobber := TARGET= clobber
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlint := TARGET= lint
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlintlib := TARGET= lintlib
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib := TARGET= modlintlib
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlist := TARGET= modlist
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlist := NO_STATE= -K $$MODSTATE$$$$
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean.lint := TARGET= clean.lint
4bff34e37def8a90f9194d81bc345c52ba20086athurlowcheck := TARGET= check
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Default build targets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow.KEEP_STATE:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowdef all clean clean.lint clobber modlist: $(MPXU_KMODS) $(CLOSED_MPXU_KMODS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlintlib: unix
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib: $(MPXU_KMODS) $(CLOSED_MPXU_KMODS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowIMPLEMENTED_PLATFORM = SUNW,Sun-Fire-V240
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLINKED_PLATFORMS = SUNW,Sun-Fire-V210
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINKED_PLATFORMS += SUNW,Netra-240
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossLINKED_PLATFORMS += SUNW,Netra-210
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# EXPORT DELETE START
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# aes256 is delivered in the SUNWcryr package which is removed from
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# the EXPORT_SRC build.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlowMPXU_CRYPTO_LINKS += aes256
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# EXPORT DELETE END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall: $(ROOT_MPXU_DIR) $(USR_MPXU_DIR) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_INC_DIR) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_SBIN_EEPROM) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_SBIN_PRTDIAG) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_SBIN_TRAPSTAT) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_SBIN_FRUADM) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(USR_MPXU_LIB_DIR) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(MPXU_CRYPTO_LINKS) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(CLOSED_MPXU_KMODS) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow .WAIT $(MPXU_KMODS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(MPXU_KMODS): FRC
4bff34e37def8a90f9194d81bc345c52ba20086athurlow @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(CLOSED_MPXU_KMODS): FRC
4bff34e37def8a90f9194d81bc345c52ba20086athurlow cd $(CLOSED)/uts/sun4u/mpxu/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(MPXU_CRYPTO_LINKS): $(ROOT_MPXU_CRYPTO_DIR_64)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow -$(RM) $(ROOT_MPXU_CRYPTO_DIR_64)/$@;
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_MPXU_CRYPTO_DIR_64)/$@
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall_h check: FRC
4bff34e37def8a90f9194d81bc345c52ba20086athurlow @cd sys; pwd; $(MAKE) $(TARGET)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlint: modlintlib
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
LINT_LIBS = $(LINT_LIB) \
-L$(MPXU_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) "\nMPXU 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/mpxu/Makefile.targ