10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 52228Skrishna# Common Development and Distribution License (the "License"). 62228Skrishna# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 220Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 230Sstevel@tonic-gate# 24*6007Sthurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 250Sstevel@tonic-gate# Use is subject to license terms. 260Sstevel@tonic-gate# 270Sstevel@tonic-gate# uts/sparc/Makefile 280Sstevel@tonic-gate# 290Sstevel@tonic-gate# This makefile drives the production of all implementation architecture 300Sstevel@tonic-gate# independent modules for the SPARC processor. (For those unsure, this 310Sstevel@tonic-gate# means the module will run on all SPARC processor based machines 320Sstevel@tonic-gate# running SunOS.) 330Sstevel@tonic-gate 340Sstevel@tonic-gateUTSBASE = .. 350Sstevel@tonic-gate 360Sstevel@tonic-gateinclude Makefile.sparc 370Sstevel@tonic-gate 38*6007SthurlowLINT_KMODS_X1 = $(LINT_KMODS:nsmb=) 39*6007SthurlowLINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=) 40*6007SthurlowLINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=) 41*6007SthurlowLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \ 42*6007Sthurlow $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 430Sstevel@tonic-gate 441167Skupfer$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 451167Skupfer 460Sstevel@tonic-gate# EXPORT DELETE START 472228Skrishna$(CLOSED_BUILD)LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 48391Sxy150489LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 493526Sxy150489$(CLOSED_BUILD)LINT_LIBS += $(CLOSED_XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 501167Skupfer 510Sstevel@tonic-gateDRV_KMODS += dprov 521167Skupfer 530Sstevel@tonic-gate# EXPORT DELETE END 540Sstevel@tonic-gate 550Sstevel@tonic-gatedef := TARGET= def 560Sstevel@tonic-gateall := TARGET= all 570Sstevel@tonic-gateinstall := TARGET= install 580Sstevel@tonic-gateclean := TARGET= clean 590Sstevel@tonic-gateclobber := TARGET= clobber 600Sstevel@tonic-gatelint := TARGET= lint 610Sstevel@tonic-gatemodlintlib := TARGET= modlintlib 621167Skupfermodlist := TARGET= modlist 631167Skupfermodlist := NO_STATE= -K $$MODSTATE$$$$ 640Sstevel@tonic-gateclean.lint := TARGET= clean.lint 650Sstevel@tonic-gatecheck := TARGET= check 660Sstevel@tonic-gateinstall_h := TARGET= install_h 670Sstevel@tonic-gate 680Sstevel@tonic-gate.KEEP_STATE: 690Sstevel@tonic-gate 703446Smrj.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) \ 713446Smrj $(CLOSED_XMODS) config $(LINT_DEPS) 720Sstevel@tonic-gate 731167Skupferdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) $(SVVS) \ 741167Skupfer $(XMODS) $(CLOSED_XMODS) config 750Sstevel@tonic-gate 761167Skupfermodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \ 773526Sxy150489 $(XMODS) $(CLOSED_XMODS) 780Sstevel@tonic-gate 790Sstevel@tonic-gate$(KMODS) config: FRC 801167Skupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 811167Skupfer 821167Skupfer$(CLOSED_KMODS): FRC 831167Skupfer cd $(CLOSED)/uts/sparc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 840Sstevel@tonic-gate 851167Skupfer$(XMODS): FRC 860Sstevel@tonic-gate @if [ -f $@/Makefile ]; then \ 871167Skupfer cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \ 881167Skupfer else \ 891167Skupfer true; \ 901167Skupfer fi 911167Skupfer 921167Skupfer$(SVVS) $(CLOSED_XMODS): FRC 931167Skupfer @if [ -f $(CLOSED)/uts/sparc/$@/Makefile ]; then \ 941167Skupfer cd $(CLOSED)/uts/sparc/$@; pwd; \ 951167Skupfer $(MAKE) $(NO_STATE) $(TARGET); \ 960Sstevel@tonic-gate else \ 970Sstevel@tonic-gate true; \ 980Sstevel@tonic-gate fi 990Sstevel@tonic-gate 1000Sstevel@tonic-gateinstall_h check: FRC 101713Swesolows @cd asm; pwd; $(MAKE) $(TARGET) 1020Sstevel@tonic-gate @cd sys; pwd; $(MAKE) $(TARGET) 1030Sstevel@tonic-gate @cd v7/sys; pwd; $(MAKE) $(TARGET) 1040Sstevel@tonic-gate @cd v9/sys; pwd; $(MAKE) $(TARGET) 1050Sstevel@tonic-gate 1060Sstevel@tonic-gate# 1070Sstevel@tonic-gate# Full kernel lint target. 1080Sstevel@tonic-gate# 1090Sstevel@tonic-gateLINT_TARGET = globallint 1100Sstevel@tonic-gate 1110Sstevel@tonic-gategloballint: 1120Sstevel@tonic-gate @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 1130Sstevel@tonic-gate @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 1140Sstevel@tonic-gate 1150Sstevel@tonic-gatelint: modlintlib .WAIT $(LINT_DEPS) 1160Sstevel@tonic-gate 1170Sstevel@tonic-gate# EXPORT DELETE START 1180Sstevel@tonic-gate 1190Sstevel@tonic-gateEXPORT_SRC: 1200Sstevel@tonic-gate $(RM) Makefile+ 1210Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 1220Sstevel@tonic-gate < Makefile > Makefile+ 1230Sstevel@tonic-gate $(MV) Makefile+ Makefile 1240Sstevel@tonic-gate $(CHMOD) 444 Makefile 1250Sstevel@tonic-gate 1260Sstevel@tonic-gate# EXPORT DELETE END 1270Sstevel@tonic-gate 1280Sstevel@tonic-gateinclude ../Makefile.targ 129