Makefile revision 506aa7c68b127eefb0197e329af7e9abcc3ebc98
12N/A#
12N/A# CDDL HEADER START
12N/A#
12N/A# The contents of this file are subject to the terms of the
12N/A# Common Development and Distribution License (the "License").
12N/A# You may not use this file except in compliance with the License.
12N/A#
12N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12N/A# or http://www.opensolaris.org/os/licensing.
12N/A# See the License for the specific language governing permissions
12N/A# and limitations under the License.
12N/A#
12N/A# When distributing Covered Code, include this CDDL HEADER in each
12N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
12N/A# If applicable, add the following below this CDDL HEADER, with the
12N/A# fields enclosed by brackets "[]" replaced with your own identifying
12N/A# information: Portions Copyright [yyyy] [name of copyright owner]
12N/A#
12N/A# CDDL HEADER END
12N/A#
12N/A#
12N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
12N/A# Use is subject to license terms.
12N/A#
12N/A# uts/sparc/Makefile
12N/A#
12N/A# This makefile drives the production of all implementation architecture
12N/A# independent modules for the SPARC processor. (For those unsure, this
12N/A# means the module will run on all SPARC processor based machines
12N/A# running SunOS.)
12N/A
12N/AUTSBASE = ..
30N/A
30N/Ainclude Makefile.sparc
12N/A
12N/ALINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
12N/ALINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
114N/ALINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
114N/ALINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
12N/A $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
12N/A
12N/A$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
114N/A
114N/A$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
12N/ALINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
30N/A$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
30N/A
29N/ADRV_KMODS += dprov
29N/A
29N/Adef := TARGET= def
29N/Aall := TARGET= all
59N/Ainstall := TARGET= install
29N/Aclean := TARGET= clean
29N/Aclobber := TARGET= clobber
59N/Alint := TARGET= lint
59N/Amodlintlib := TARGET= modlintlib
114N/Amodlist := TARGET= modlist
114N/Amodlist := NO_STATE= -K $$MODSTATE$$$$
114N/Aclean.lint := TARGET= clean.lint
114N/Acheck := TARGET= check
114N/Ainstall_h := TARGET= install_h
12N/A
12N/A.KEEP_STATE:
59N/A
12N/A.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
12N/A $(CLOSED_XMODS) config $(LINT_DEPS)
12N/A
12N/Adef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
12N/A $(XMODS) $(CLOSED_XMODS) config
12N/A
33N/Amodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
98N/A $(XMODS) $(CLOSED_XMODS)
33N/A
34N/A$(KMODS) config: FRC
33N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
59N/A
33N/A$(CLOSED_KMODS): FRC
33N/A cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
33N/A
59N/A$(XMODS): FRC
46N/A @if [ -f $@/Makefile ]; then \
33N/A cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
98N/A else \
33N/A true; \
33N/A fi
22N/A
59N/A$(SVVS) $(CLOSED_XMODS): FRC
59N/A @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
59N/A cd $(CLOSED)/uts/sparc/$@; pwd; \
59N/A $(MAKE) $(NO_STATE) $(TARGET); \
59N/A else \
98N/A true; \
59N/A fi
59N/A
59N/Ainstall_h check: FRC
59N/A @cd asm; pwd; $(MAKE) $(TARGET)
59N/A @cd sys; pwd; $(MAKE) $(TARGET)
59N/A @cd v7/sys; pwd; $(MAKE) $(TARGET)
24N/A @cd v9/sys; pwd; $(MAKE) $(TARGET)
33N/A
33N/A#
117N/A# Full kernel lint target.
33N/A#
24N/ALINT_TARGET = globallint
29N/A
33N/Agloballint:
119N/A @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
118N/A @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
59N/A
104N/Alint: modlintlib .WAIT $(LINT_DEPS)
59N/A
59N/Ainclude ../Makefile.targ
59N/A