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_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 41 42# EXPORT DELETE START 43LINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 44LINT_XMODLIBS = $(XMODS:e1000g=) 45LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 46DRV_KMODS += dprov 47DRV_KMODS += dca 48# 49# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*) 50# They need to be listed separately since they duplicate global symbols 51# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS 52# should not be listed in the lint target. 53# 54CRYPTO_EK_KMODS += aes256 55CRYPTO_EK_KMODS += arcfour2048 56CRYPTO_EK_KMODS += blowfish448 57# EXPORT DELETE END 58 59# 60# 61# 62def := TARGET= def 63all := TARGET= all 64install := TARGET= install 65clean := TARGET= clean 66clobber := TARGET= clobber 67lint := TARGET= lint 68modlintlib := TARGET= modlintlib 69clean.lint := TARGET= clean.lint 70check := TARGET= check 71install_h := TARGET= install_h 72 73.KEEP_STATE: 74 75.PARALLEL: $(KMODS) $(SVVS) $(XMODS) config $(LINT_DEPS) 76 77def all install clean clobber: $(KMODS) $(SVVS) $(XMODS) config 78 79modlintlib clean.lint: $(LINT_KMODS) $(SVVS) $(XMODS) 80 81$(KMODS) config: FRC 82 @cd $@; pwd; $(MAKE) $(TARGET) 83 84$(SVVS) $(XMODS): FRC 85 @if [ -f $@/Makefile ]; then \ 86 cd $@; pwd; $(MAKE) $(TARGET); \ 87 else \ 88 true; \ 89 fi 90 91install_h check: FRC 92 @cd asm; pwd; $(MAKE) $(TARGET) 93 @cd sys; pwd; $(MAKE) $(TARGET) 94 @cd v7/sys; pwd; $(MAKE) $(TARGET) 95 @cd v9/sys; pwd; $(MAKE) $(TARGET) 96 97# 98# Full kernel lint target. 99# 100LINT_TARGET = globallint 101 102globallint: 103 @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 104 @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 105 106lint: modlintlib .WAIT $(LINT_DEPS) 107 108# EXPORT DELETE START 109 110EXPORT_SRC: 111 $(RM) Makefile+ 112 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 113 < Makefile > Makefile+ 114 $(MV) Makefile+ Makefile 115 $(CHMOD) 444 Makefile 116 117# EXPORT DELETE END 118 119include ../Makefile.targ 120