Makefile revision 6357b7bb1039bed3ca23c5942e250f1bf1df550f
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#ident "%Z%%M% %I% %E% SMI"
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# uts/sparc/Makefile
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# This makefile drives the production of all implementation architecture
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# independent modules for the SPARC processor. (For those unsure, this
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# means the module will run on all SPARC processor based machines
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# running SunOS.)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowUTSBASE = ..
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossinclude Makefile.sparc
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# EXPORT DELETE START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossLINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon RossDRV_KMODS += dprov
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# EXPORT DELETE END
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossdef := TARGET= def
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossall := TARGET= all
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossinstall := TARGET= install
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossclean := TARGET= clean
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossclobber := TARGET= clobber
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rosslint := TARGET= lint
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib := TARGET= modlintlib
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlist := TARGET= modlist
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlist := NO_STATE= -K $$MODSTATE$$$$
4bff34e37def8a90f9194d81bc345c52ba20086athurlowclean.lint := TARGET= clean.lint
4bff34e37def8a90f9194d81bc345c52ba20086athurlowcheck := TARGET= check
4bff34e37def8a90f9194d81bc345c52ba20086athurlowinstall_h := TARGET= install_h
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow.KEEP_STATE:
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(CLOSED_XMODS) config $(LINT_DEPS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(XMODS) $(CLOSED_XMODS) config
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlowmodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
4bff34e37def8a90f9194d81bc345c52ba20086athurlow $(XMODS) $(CLOSED_XMODS)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross$(KMODS) config: FRC
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow$(CLOSED_KMODS): FRC
4bff34e37def8a90f9194d81bc345c52ba20086athurlow cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross$(XMODS): FRC
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross @if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
$(SVVS) $(CLOSED_XMODS): FRC
@if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
cd $(CLOSED)/uts/sparc/$@; pwd; \
$(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
install_h check: FRC
@cd asm; pwd; $(MAKE) $(TARGET)
@cd sys; pwd; $(MAKE) $(TARGET)
@cd v7/sys; pwd; $(MAKE) $(TARGET)
@cd v9/sys; pwd; $(MAKE) $(TARGET)
#
# Full kernel lint target.
#
LINT_TARGET = globallint
globallint:
@-$(ECHO) "\nFULL KERNEL: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
lint: modlintlib .WAIT $(LINT_DEPS)
# EXPORT DELETE START
EXPORT_SRC:
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
# EXPORT DELETE END
include ../Makefile.targ