Makefile revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License, Version 1.0 only
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# (the "License"). You may not use this file except in compliance
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Use is subject to license terms.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#pragma ident "%Z%%M% %I% %E% SMI"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This makefile drives the production of the sun4u schumacher platform
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# module.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# sun4u implementation architecture dependent
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Path to the base of the uts directory tree (usually /usr/src/uts).
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUTSBASE = ../..
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common rules.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(UTSBASE)/sun4u/schumacher/Makefile.schumacher
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdef := TARGET= def
5b0c702735f2049038c50c7dc5dd2606086ee110bnicholesall := TARGET= all
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall := TARGET= install
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall_h := TARGET= install_h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean := TARGET= clean
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclobber := TARGET= clobber
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint := TARGET= lint
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslintlib := TARGET= lintlib
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesmodlintlib := TARGET= modlintlib
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean.lint := TARGET= clean.lint
bb2b38cd44b032118359afbc743efbea12f48e61bnicholescheck := TARGET= check
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Default build targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdef all clean clean.lint clobber: $(SCHUMACHER_KMODS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesmodlintlib: $(SCHUMACHER_KMODS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# EXPORT DELETE START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# aes256 is delivered in the SUNWcryr package which is removed from
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# the EXPORT_SRC build.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesSCHUMACHER_CRYPTO_LINKS += aes256
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# EXPORT DELETE END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(ROOT_SCHUMACHER_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_INC_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_SBIN_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_SBIN_EEPROM) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_SBIN_PRTDIAG) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_SBIN_TRAPSTAT) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_SBIN_FRUADM) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(USR_SCHUMACHER_LIB_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SCHUMACHER_CRYPTO_LINKS) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SCHUMACHER_KMODS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholescheck install_h:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: modlintlib
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The 'lint.platmod' target lints the schumacher platform module against the sun4u
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# kernel. This ends up doing all the kernel cross-checks, so it takes a couple
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# of minutes.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINT_LIBS = $(LINT_LIB) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -L$(SCHUMACHER_LINT_LIB_DIR) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint.platmod: modlintlib
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @-$(ECHO) "\nSchumacher Platform-dependent module: global crosschecks:"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(SCHUMACHER_KMODS): FRC
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd $@; pwd; $(MAKE) $(TARGET)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(SCHUMACHER_CRYPTO_LINKS): $(ROOT_SCHUMACHER_CRYPTO_DIR_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -$(RM) $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@;
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ $(ROOT_SCHUMACHER_CRYPTO_DIR_64)/$@
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# EXPORT DELETE START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesEXPORT_SRC:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) Makefile+
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes < Makefile > Makefile+
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MV) Makefile+ Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CHMOD) 444 Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# EXPORT DELETE END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common targets.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(UTSBASE)/sun4u/schumacher/Makefile.targ
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes