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