2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A# This makefile drives the production of the sun4u opl platform
2N/A# module.
2N/A#
2N/A# sun4u opl implementation architecture dependent
2N/A#
2N/A# uts/sun4u/opl/Makefile
2N/A
2N/A#
2N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2N/A#
2N/AUTSBASE = ../..
2N/A
2N/A#
2N/A# Include common rules.
2N/A#
2N/Ainclude $(UTSBASE)/sun4u/opl/Makefile.opl
2N/A
2N/Adef := TARGET= def
2N/Aall := TARGET= all
2N/Ainstall := TARGET= install
2N/Ainstall_h := TARGET= install_h
2N/Aclean := TARGET= clean
2N/Aclobber := TARGET= clobber
2N/Alint := TARGET= lint
2N/Alintlib := TARGET= lintlib
2N/Amodlist := TARGET= modlist
2N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
2N/Amodlintlib := TARGET= modlintlib
2N/Aclean.lint := TARGET= clean.lint
2N/Acheck := TARGET= check
2N/A
2N/A#
2N/A# Default build targets.
2N/A#
2N/A.KEEP_STATE:
2N/A
2N/Adef all clean clobber clean.lint: genassym unix .WAIT \
2N/A $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
2N/A
2N/Amodlist: unix $(OPL_CPU_KMODS) $(OPL_KMODS) $(CLOSED_OPL_KMODS)
2N/A
2N/Alintlib: unix
2N/A
2N/Amodlintlib: $(OPL_KMODS) $(CLOSED_OPL_KMODS)
2N/A
2N/AIMPLEMENTED_PLATFORM = SUNW,SPARC-Enterprise
2N/A
2N/Ainstall: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \
2N/A $(USR_OPL_INC_DIR) \
2N/A $(USR_OPL_SBIN_DIR) \
2N/A $(USR_OPL_SBIN_PRTDIAG) \
2N/A $(USR_OPL_SBIN_FRUADM) \
2N/A $(USR_OPL_LIB_DIR) \
2N/A $(OPL_CRYPTO_LINKS) \
2N/A genassym unix .WAIT $(OPL_CPU_KMODS) $(OPL_KMODS) \
2N/A $(CLOSED_OPL_KMODS) $(OPLMSU_OPTION)
2N/A
2N/Agenassym unix $(OPL_KMODS) $(OPL_CPU_KMODS): FRC
2N/A @cd $@; pwd; $(MAKE) $(TARGET)
2N/A
2N/A$(CLOSED_OPL_KMODS): FRC
2N/A cd $(CLOSED)/uts/sun4u/opl/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
2N/A
2N/A$(OPL_CRYPTO_LINKS): $(ROOT_OPL_CRYPTO_DIR_64)
2N/A -$(RM) $(ROOT_OPL_CRYPTO_DIR_64)/$@
2N/A $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_OPL_CRYPTO_DIR_64)/$@
2N/A
2N/A$(OPLMSU_OPTION): FRC
2N/A @cd $@; pwd; $(MAKE) $(TARGET)
2N/A
2N/Ainstall_h check: FRC
2N/A @cd sys; pwd; $(MAKE) $(TARGET)
2N/A
2N/Alint: modlintlib
2N/A
2N/A
2N/A#
2N/A# The 'lint.platmod' target lints the opl platform module against
2N/A# the sun4u kernel. This ends up doing all the kernel cross-checks,
2N/A# so it takes a couple of minutes.
2N/A# Due to the low ROI, it's not run by default, but it's a good
2N/A# idea to run this if you change os/opl.c.
2N/A#
2N/A
2N/ALINT_LIBS = $(LINT_LIB) \
2N/A -L$(OPL_LINT_LIB_DIR) \
2N/A -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
2N/A $(CLOSED_LINT_KMODS:%=-l%) \
2N/A -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
2N/A
2N/Alint.platmod: modlintlib
2N/A @-$(ECHO) "\nOpl Platform-dependent module: global crosschecks:"
2N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
2N/A
2N/A#
2N/A#
2N/A# Include common targets.
2N/A#
2N/Ainclude $(UTSBASE)/sun4u/opl/Makefile.targ
2N/A