Makefile revision 694c35faa87b858ecdadfe4fc592615f4eefbb07
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# CDDL HEADER START
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd#
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# The contents of this file are subject to the terms of the
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# Common Development and Distribution License (the "License").
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# You may not use this file except in compliance with the License.
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# or http://www.opensolaris.org/os/licensing.
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc# See the License for the specific language governing permissions
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# and limitations under the License.
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
2e545ce2450a9953665f701bb05350f0d3f26275nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# If applicable, add the following below this CDDL HEADER, with the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# fields enclosed by brackets "[]" replaced with your own identifying
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# information: Portions Copyright [yyyy] [name of copyright owner]
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# CDDL HEADER END
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# Use is subject to license terms.
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# uts/sparc/Makefile
0cf3cdbaa1dad11cbf1ce32e48f1b4ec88cf779fnilgun#
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung# This makefile drives the production of all implementation architecture
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# independent modules for the SPARC processor. (For those unsure, this
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# means the module will run on all SPARC processor based machines
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# running SunOS.)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
4a3f85b165e7ece75cfbdb5e0c5d272edd036c32rpluemUTSBASE = ..
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslinclude Makefile.sparc
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjungDRV_KMODS += dprov
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsldef := TARGET= def
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjungall := TARGET= all
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslinstall := TARGET= install
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjungclean := TARGET= clean
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjungclobber := TARGET= clobber
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjunglint := TARGET= lint
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslmodlintlib := TARGET= modlintlib
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslmodlist := TARGET= modlist
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslmodlist := NO_STATE= -K $$MODSTATE$$$$
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslclean.lint := TARGET= clean.lint
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslcheck := TARGET= check
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslinstall_h := TARGET= install_h
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl.KEEP_STATE:
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung $(CLOSED_XMODS) config $(LINT_DEPS)
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjungdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl $(XMODS) $(CLOSED_XMODS) config
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslmodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl $(XMODS) $(CLOSED_XMODS)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung$(KMODS) config: FRC
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung$(CLOSED_KMODS): FRC
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung$(XMODS): FRC
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung @if [ -f $@/Makefile ]; then \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl else \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl true; \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl fi
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl$(SVVS) $(CLOSED_XMODS): FRC
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung cd $(CLOSED)/uts/sparc/$@; pwd; \
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl $(MAKE) $(NO_STATE) $(TARGET); \
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung else \
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung true; \
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung fi
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslinstall_h check: FRC
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @cd asm; pwd; $(MAKE) $(TARGET)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @cd sys; pwd; $(MAKE) $(TARGET)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @cd v7/sys; pwd; $(MAKE) $(TARGET)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @cd v9/sys; pwd; $(MAKE) $(TARGET)
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl# Full kernel lint target.
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung#
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslLINT_TARGET = globallint
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjunggloballint:
1c28b8f24d373dfe800f9d99b9eea20fd05c1376rjung @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsllint: modlintlib .WAIT $(LINT_DEPS)
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jslinclude ../Makefile.targ
8a5db6a3d29e28627bf8a6d6f7066e840da6bdf2jsl