Makefile revision 6e91bba0d6c6bdabbba62cefae583715a4a58e2a
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
c99e4bdccfb4ac4da569c64a43baaf908d726329Chris Kirby#ident "%Z%%M% %I% %E% SMI"
bf16b11e8deb633dd6c4296d46e92399d1582df4Matthew Ahrens#
b3d32f0ceb59362ba287dcfd6de471e98bfc7fa9Bryan Cantrill# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# uts/sparc/Makefile
c9431fa1e59a88c2f0abf611f25b97af964449e5ahl#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# This makefile drives the production of all implementation architecture
fa9e4066f08beec538e775443c5be79dd423fcabahrens# independent modules for the SPARC processor. (For those unsure, this
fa9e4066f08beec538e775443c5be79dd423fcabahrens# means the module will run on all SPARC processor based machines
c9431fa1e59a88c2f0abf611f25b97af964449e5ahl# running SunOS.)
c9431fa1e59a88c2f0abf611f25b97af964449e5ahl
df15e419cb7359ba56ddddab9045e438d89e7cbcMatthew AhrensUTSBASE = ..
fa9e4066f08beec538e775443c5be79dd423fcabahrens
c9431fa1e59a88c2f0abf611f25b97af964449e5ahlinclude Makefile.sparc
fa9e4066f08beec538e775443c5be79dd423fcabahrens
c9431fa1e59a88c2f0abf611f25b97af964449e5ahlLINT_KMODS_X1 = $(LINT_KMODS:nsmb=)
3b2aab18808792cbd248a12f1edf139b89833c13Matthew AhrensLINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=)
c9431fa1e59a88c2f0abf611f25b97af964449e5ahlLINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=)
95173954d2b811ceb583a9012c3b16e1d0dd6438ekLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \
5679c89fcd2facbb4334df8870d3d7a4d2b11673jv $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
5ad820458efd0fdb914baff9c1447c22b819fa23nd
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# EXPORT DELETE START
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
feef89cf5f5fee792c1a396bb0e48070935cf65aVictor LatushkinLINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
5679c89fcd2facbb4334df8870d3d7a4d2b11673jvDRV_KMODS += dprov
283b84606b6fc326692c03273de1774e8c122f9aGeorge.Wilson
94dd93aee32d1616436eb51fb7b58094b9a8d3e8George Wilson# EXPORT DELETE END
95173954d2b811ceb583a9012c3b16e1d0dd6438ek
df15e419cb7359ba56ddddab9045e438d89e7cbcMatthew Ahrensdef := TARGET= def
df15e419cb7359ba56ddddab9045e438d89e7cbcMatthew Ahrensall := TARGET= all
df15e419cb7359ba56ddddab9045e438d89e7cbcMatthew Ahrensinstall := TARGET= install
95173954d2b811ceb583a9012c3b16e1d0dd6438ekclean := TARGET= clean
95173954d2b811ceb583a9012c3b16e1d0dd6438ekclobber := TARGET= clobber
95173954d2b811ceb583a9012c3b16e1d0dd6438eklint := TARGET= lint
fa9e4066f08beec538e775443c5be79dd423fcabahrensmodlintlib := TARGET= modlintlib
35a5a3587fd94b666239c157d3722745250ccbd7Jonathan Adamsmodlist := TARGET= modlist
35a5a3587fd94b666239c157d3722745250ccbd7Jonathan Adamsmodlist := NO_STATE= -K $$MODSTATE$$$$
35a5a3587fd94b666239c157d3722745250ccbd7Jonathan Adamsclean.lint := TARGET= clean.lint
fa9e4066f08beec538e775443c5be79dd423fcabahrenscheck := TARGET= check
fa9e4066f08beec538e775443c5be79dd423fcabahrensinstall_h := TARGET= install_h
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens.KEEP_STATE:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(CLOSED_XMODS) config $(LINT_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(XMODS) $(CLOSED_XMODS) config
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensmodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(XMODS) $(CLOSED_XMODS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens$(KMODS) config: FRC
fa9e4066f08beec538e775443c5be79dd423fcabahrens @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
44cb6abc89aa591c23f5e58296c6d2a29302344abmc$(CLOSED_KMODS): FRC
44cb6abc89aa591c23f5e58296c6d2a29302344abmc cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
44cb6abc89aa591c23f5e58296c6d2a29302344abmc
44cb6abc89aa591c23f5e58296c6d2a29302344abmc$(XMODS): FRC
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @if [ -f $@/Makefile ]; then \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc else \
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens true; \
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens fi
44cb6abc89aa591c23f5e58296c6d2a29302344abmc
44cb6abc89aa591c23f5e58296c6d2a29302344abmc$(SVVS) $(CLOSED_XMODS): FRC
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc cd $(CLOSED)/uts/sparc/$@; pwd; \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc $(MAKE) $(NO_STATE) $(TARGET); \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc else \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc true; \
44cb6abc89aa591c23f5e58296c6d2a29302344abmc fi
44cb6abc89aa591c23f5e58296c6d2a29302344abmc
44cb6abc89aa591c23f5e58296c6d2a29302344abmcinstall_h check: FRC
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @cd asm; pwd; $(MAKE) $(TARGET)
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @cd sys; pwd; $(MAKE) $(TARGET)
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @cd v7/sys; pwd; $(MAKE) $(TARGET)
44cb6abc89aa591c23f5e58296c6d2a29302344abmc @cd v9/sys; pwd; $(MAKE) $(TARGET)
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens#
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens# Full kernel lint target.
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens#
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew AhrensLINT_TARGET = globallint
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrensgloballint:
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens @-$(ECHO) "\nFULL KERNEL: global crosschecks:"
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrenslint: modlintlib .WAIT $(LINT_DEPS)
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens# EXPORT DELETE START
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew AhrensEXPORT_SRC:
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens $(RM) Makefile+
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens < Makefile > Makefile+
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens $(MV) Makefile+ Makefile
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens $(CHMOD) 444 Makefile
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens# EXPORT DELETE END
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrensinclude ../Makefile.targ
c3a66015199e1814c2af8f7e6929af2004302e7eMatthew Ahrens