Makefile revision 7b77b0178ffc12e4b7f782b15747abb8ece8a563
0N/A#
0N/A# CDDL HEADER START
1356N/A#
0N/A# The contents of this file are subject to the terms of the
1593N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# This makefile drives the production of the sun4u opl platform
156N/A# module.
493N/A#
0N/A# sun4u opl implementation architecture dependent
1356N/A#
1356N/A# uts/sun4u/opl/Makefile
1356N/A
970N/A#
970N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
970N/A#
970N/AUTSBASE = ../..
970N/A
970N/A#
970N/A# Include common rules.
970N/A#
970N/Ainclude $(UTSBASE)/sun4u/opl/Makefile.opl
970N/A
970N/Adef := TARGET= def
970N/Aall := TARGET= all
970N/Ainstall := TARGET= install
970N/Ainstall_h := TARGET= install_h
970N/Aclean := TARGET= clean
970N/Aclobber := TARGET= clobber
970N/Alint := TARGET= lint
970N/Alintlib := TARGET= lintlib
970N/Amodlist := TARGET= modlist
1504N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
1504N/Amodlintlib := TARGET= modlintlib
1504N/Aclean.lint := TARGET= clean.lint
1504N/Acheck := TARGET= check
1590N/A
1590N/A#
970N/A# Default build targets.
970N/A#
970N/A.KEEP_STATE:
970N/A
970N/Adef all clean clobber clean.lint: genassym unix .WAIT \
1551N/A $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
1551N/A
1590N/Amodlist: unix $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
970N/A
0N/Alintlib: unix
1590N/A
0N/Amodlintlib: $(OPL_KMODS) $(CLOSED_OPL_KMODS)
911N/A
1590N/AIMPLEMENTED_PLATFORM = SUNW,SPARC-Enterprise
1590N/A
1590N/A# EXPORT DELETE START
911N/A#
0N/A# aes256 is delivered in the SUNWcryr package which is removed from
493N/A# the EXPORT_SRC build.
493N/A#
0N/AOPL_CRYPTO_LINKS += aes256
0N/A# EXPORT DELETE END
156N/A
156N/Ainstall: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \
0N/A $(USR_OPL_INC_DIR) \
0N/A $(USR_OPL_SBIN_DIR) \
950N/A $(USR_OPL_SBIN_EEPROM) \
950N/A $(USR_OPL_SBIN_PRTDIAG) \
1531N/A $(USR_OPL_SBIN_TRAPSTAT) \
950N/A $(USR_OPL_SBIN_FRUADM) \
1590N/A $(USR_OPL_LIB_DIR) \
1590N/A $(OPL_CRYPTO_LINKS) \
1102N/A genassym unix .WAIT $(OPL_CPU_KMODS) $(OPL_KMODS) \
1590N/A $(CLOSED_OPL_KMODS) $(OPLMSU_OPTION)
1590N/A
1590N/Agenassym unix $(OPL_KMODS) $(OPL_CPU_KMODS): FRC
364N/A @cd $@; pwd; $(MAKE) $(TARGET)
156N/A
156N/A$(CLOSED_OPL_KMODS): FRC
0N/A cd $(CLOSED)/uts/sun4u/opl/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
591N/A
1590N/A$(OPL_CRYPTO_LINKS): $(ROOT_OPL_CRYPTO_DIR_64)
947N/A -$(RM) $(ROOT_OPL_CRYPTO_DIR_64)/$@
591N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_OPL_CRYPTO_DIR_64)/$@
591N/A
591N/A$(OPLMSU_OPTION): FRC
947N/A @cd $@; pwd; $(MAKE) $(TARGET)
947N/A
947N/Ainstall_h check: FRC
947N/A @cd sys; pwd; $(MAKE) $(TARGET)
947N/A
947N/Alint: modlintlib
947N/A
947N/A
947N/A#
947N/A# The 'lint.platmod' target lints the opl platform module against
947N/A# the sun4u kernel. This ends up doing all the kernel cross-checks,
947N/A# so it takes a couple of minutes.
947N/A# Due to the low ROI, it's not run by default, but it's a good
947N/A# idea to run this if you change os/opl.c.
947N/A#
947N/A
1590N/ALINT_LIBS = $(LINT_LIB) \
1590N/A -L$(OPL_LINT_LIB_DIR) \
0N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
1418N/A $(CLOSED_LINT_KMODS:%=-l%) \
1418N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
1598N/A
1598N/Alint.platmod: modlintlib
1598N/A @-$(ECHO) "\nOpl Platform-dependent module: global crosschecks:"
156N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
1504N/A
1504N/A# EXPORT DELETE START
1504N/A
1504N/AEXPORT_SRC:
493N/A $(RM) Makefile+
493N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1504N/A < Makefile > Makefile+
1590N/A $(MV) Makefile+ Makefile
1590N/A $(CHMOD) 444 Makefile
1590N/A
837N/A# EXPORT DELETE END
846N/A
493N/A#
156N/A#
493N/A# Include common targets.
493N/A#
493N/Ainclude $(UTSBASE)/sun4u/opl/Makefile.targ
364N/A