1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23#ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 26# Use is subject to license terms. 27# 28# uts/sparc/Makefile 29# 30# This makefile drives the production of all implementation architecture 31# independent modules for the SPARC processor. (For those unsure, this 32# means the module will run on all SPARC processor based machines 33# running SunOS.) 34 35UTSBASE = .. 36 37include Makefile.sparc 38 39LINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \ 40 $(LINT_KMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 41 42# EXPORT DELETE START 43LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 44LINT_LIBS += $(XMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 45DRV_KMODS += dprov 46# 47# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*) 48# They need to be listed separately since they duplicate global symbols 49# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS 50# should not be listed in the lint target. 51# 52CRYPTO_EK_KMODS += aes256 53CRYPTO_EK_KMODS += arcfour2048 54CRYPTO_EK_KMODS += blowfish448 55# EXPORT DELETE END 56 57# 58# 59# 60def := TARGET= def 61all := TARGET= all 62install := TARGET= install 63clean := TARGET= clean 64clobber := TARGET= clobber 65lint := TARGET= lint 66modlintlib := TARGET= modlintlib 67clean.lint := TARGET= clean.lint 68check := TARGET= check 69install_h := TARGET= install_h 70 71.KEEP_STATE: 72 73.PARALLEL: $(KMODS) $(SVVS) $(XMODS) config $(LINT_DEPS) 74 75def all install clean clobber: $(KMODS) $(SVVS) $(XMODS) config 76 77modlintlib clean.lint: $(LINT_KMODS) $(SVVS) $(XMODS) 78 79$(KMODS) config: FRC 80 @cd $@; pwd; $(MAKE) $(TARGET) 81 82$(SVVS) $(XMODS): FRC 83 @if [ -f $@/Makefile ]; then \ 84 cd $@; pwd; $(MAKE) $(TARGET); \ 85 else \ 86 true; \ 87 fi 88 89install_h check: FRC 90 @cd sys; pwd; $(MAKE) $(TARGET) 91 @cd v7/sys; pwd; $(MAKE) $(TARGET) 92 @cd v9/sys; pwd; $(MAKE) $(TARGET) 93 94# 95# Full kernel lint target. 96# 97LINT_TARGET = globallint 98 99globallint: 100 @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 101 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 102 103lint: modlintlib .WAIT $(LINT_DEPS) 104 105# EXPORT DELETE START 106 107EXPORT_SRC: 108 $(RM) Makefile+ 109 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 110 < Makefile > Makefile+ 111 $(MV) Makefile+ Makefile 112 $(CHMOD) 444 Makefile 113 114# EXPORT DELETE END 115 116include ../Makefile.targ 117