17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 588543b5cSkrishna# Common Development and Distribution License (the "License"). 688543b5cSkrishna# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 224bff34e3Sthurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# uts/sparc/Makefile 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# This makefile drives the production of all implementation architecture 287c478bd9Sstevel@tonic-gate# independent modules for the SPARC processor. (For those unsure, this 297c478bd9Sstevel@tonic-gate# means the module will run on all SPARC processor based machines 307c478bd9Sstevel@tonic-gate# running SunOS.) 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateUTSBASE = .. 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateinclude Makefile.sparc 357c478bd9Sstevel@tonic-gate 364bff34e3SthurlowLINT_KMODS_X1 = $(LINT_KMODS:nsmb=) 374bff34e3SthurlowLINT_KMODS_X2 = $(LINT_KMODS_X1:smbfs=) 384bff34e3SthurlowLINT_KMODLIBS = $(LINT_KMODS_X2:e1000g=) 397c478bd9Sstevel@tonic-gateLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \ 40*c0e7977aSJosef 'Jeff' Sipek $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) \ 41*c0e7977aSJosef 'Jeff' Sipek $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 42fb9f9b97Skupfer 437c478bd9Sstevel@tonic-gateDRV_KMODS += dprov 44fb9f9b97Skupfer 457c478bd9Sstevel@tonic-gatedef := TARGET= def 467c478bd9Sstevel@tonic-gateall := TARGET= all 477c478bd9Sstevel@tonic-gateinstall := TARGET= install 487c478bd9Sstevel@tonic-gateclean := TARGET= clean 497c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 507c478bd9Sstevel@tonic-gatelint := TARGET= lint 517c478bd9Sstevel@tonic-gatemodlintlib := TARGET= modlintlib 52fb9f9b97Skupfermodlist := TARGET= modlist 53fb9f9b97Skupfermodlist := NO_STATE= -K $$MODSTATE$$$$ 547c478bd9Sstevel@tonic-gateclean.lint := TARGET= clean.lint 557c478bd9Sstevel@tonic-gatecheck := TARGET= check 567c478bd9Sstevel@tonic-gateinstall_h := TARGET= install_h 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate.KEEP_STATE: 597c478bd9Sstevel@tonic-gate 60*c0e7977aSJosef 'Jeff' Sipek.PARALLEL: $(PARALLEL_KMODS) $(XMODS) config $(LINT_DEPS) 617c478bd9Sstevel@tonic-gate 62*c0e7977aSJosef 'Jeff' Sipekdef all install clean clobber modlist: $(KMODS) $(XMODS) config 637c478bd9Sstevel@tonic-gate 64*c0e7977aSJosef 'Jeff' Sipekmodlintlib clean.lint: $(LINT_KMODS) $(XMODS) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate$(KMODS) config: FRC 67fb9f9b97Skupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 687c478bd9Sstevel@tonic-gate 69fb9f9b97Skupfer$(XMODS): FRC 707c478bd9Sstevel@tonic-gate @if [ -f $@/Makefile ]; then \ 71fb9f9b97Skupfer cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \ 72fb9f9b97Skupfer else \ 73fb9f9b97Skupfer true; \ 74fb9f9b97Skupfer fi 75fb9f9b97Skupfer 767c478bd9Sstevel@tonic-gateinstall_h check: FRC 772b616c6cSwesolows @cd asm; pwd; $(MAKE) $(TARGET) 787c478bd9Sstevel@tonic-gate @cd sys; pwd; $(MAKE) $(TARGET) 797c478bd9Sstevel@tonic-gate @cd v7/sys; pwd; $(MAKE) $(TARGET) 807c478bd9Sstevel@tonic-gate @cd v9/sys; pwd; $(MAKE) $(TARGET) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate# 837c478bd9Sstevel@tonic-gate# Full kernel lint target. 847c478bd9Sstevel@tonic-gate# 857c478bd9Sstevel@tonic-gateLINT_TARGET = globallint 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gategloballint: 887c478bd9Sstevel@tonic-gate @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 897c478bd9Sstevel@tonic-gate @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gatelint: modlintlib .WAIT $(LINT_DEPS) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 94