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 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 227c478bd9Sstevel@tonic-gate# uts/intel/Makefile 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 257c478bd9Sstevel@tonic-gate# Use is subject to license terms. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# This makefile drives the production of all implementation architecture 317c478bd9Sstevel@tonic-gate# independent modules for Intel processors. 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateUTSBASE = .. 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateinclude Makefile.intel 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateLINT_LIBS = $(LINT_LIB) $(GEN_LINT_LIB) \ 38*fb9f9b97Skupfer $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \ 39*fb9f9b97Skupfer $(CLOSED_LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate# EXPORT DELETE START 427c478bd9Sstevel@tonic-gateLINT_LIBS += $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) 43*fb9f9b97Skupfer$(CLOSED_BUILD)LINT_CLOSED_XMOD3 = $(CLOSED_XMODS:lsimega=) 44*fb9f9b97Skupfer$(CLOSED_BUILD)LINT_CLOSED_XMOD2 = $(LINT_CLOSED_XMOD3:adpu320=) 45*fb9f9b97Skupfer$(CLOSED_BUILD)LINT_CLOSED_XMOD1 = $(LINT_CLOSED_XMOD2:e1000g=) 46*fb9f9b97Skupfer$(CLOSED_BUILD)LINT_XMODLIBS = $(LINT_CLOSED_XMOD1:nge=) 47*fb9f9b97Skupfer$(CLOSED_BUILD)LINT_LIBS += $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln) 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gate# dprov is delivered in the SUNWcrtptoint package. 517c478bd9Sstevel@tonic-gate# 527c478bd9Sstevel@tonic-gateDRV_KMODS += dprov 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate# 557c478bd9Sstevel@tonic-gate# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*) 567c478bd9Sstevel@tonic-gate# They need to be listed separately since they duplicate global symbols 577c478bd9Sstevel@tonic-gate# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS 587c478bd9Sstevel@tonic-gate# should not be listed in the lint target. 597c478bd9Sstevel@tonic-gate# 60*fb9f9b97Skupfer# Don't build these for OpenSolaris, since they will be replaced by 61*fb9f9b97Skupfer# binaries that are signed by Sun RE. 62*fb9f9b97Skupfer# 63*fb9f9b97Skupfer$(CLOSED_BUILD)CRYPTO_EK_KMODS += aes256 64*fb9f9b97Skupfer$(CLOSED_BUILD)CRYPTO_EK_KMODS += arcfour2048 65*fb9f9b97Skupfer$(CLOSED_BUILD)CRYPTO_EK_KMODS += blowfish448 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate# EXPORT DELETE END 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate# 707c478bd9Sstevel@tonic-gate# 717c478bd9Sstevel@tonic-gatedef := TARGET= def 727c478bd9Sstevel@tonic-gateall := TARGET= all 737c478bd9Sstevel@tonic-gateinstall := TARGET= install 747c478bd9Sstevel@tonic-gateclean := TARGET= clean 757c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 767c478bd9Sstevel@tonic-gatelint := TARGET= lint 777c478bd9Sstevel@tonic-gatemodlintlib := TARGET= modlintlib 78*fb9f9b97Skupfermodlist := TARGET= modlist 79*fb9f9b97Skupfermodlist := NO_STATE= -K $$MODSTATE$$$$ 807c478bd9Sstevel@tonic-gateclean.lint := TARGET= clean.lint 817c478bd9Sstevel@tonic-gatecheck := TARGET= check 827c478bd9Sstevel@tonic-gateinstall_h := TARGET= install_h 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate.KEEP_STATE: 857c478bd9Sstevel@tonic-gate 86*fb9f9b97Skupfer.PARALLEL: $(KMODS) $(CLOSED_KMODS) $(SVVS) $(XMODS) $(CLOSED_XMODS) \ 87*fb9f9b97Skupfer config $(LINT_DEPS) 887c478bd9Sstevel@tonic-gate 89*fb9f9b97Skupferdef all install clean clobber modlist: $(KMODS) $(CLOSED_KMODS) \ 90*fb9f9b97Skupfer $(SVVS) $(XMODS) $(CLOSED_XMODS) config 917c478bd9Sstevel@tonic-gate 92*fb9f9b97Skupfermodlintlib clean.lint: $(LINT_KMODS) $(CLOSED_LINT_KMODS) $(SVVS) \ 93*fb9f9b97Skupfer $(XMODS) $(CLOSED_XMODS) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate$(KMODS) $(SUBDIRS) config: FRC 96*fb9f9b97Skupfer @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 977c478bd9Sstevel@tonic-gate 98*fb9f9b97Skupfer$(CLOSED_KMODS): FRC 99*fb9f9b97Skupfer cd $(CLOSED)/uts/intel/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET) 100*fb9f9b97Skupfer 101*fb9f9b97Skupfer$(XMODS): FRC 1027c478bd9Sstevel@tonic-gate @if [ -f $@/Makefile ]; then \ 103*fb9f9b97Skupfer cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \ 104*fb9f9b97Skupfer else \ 105*fb9f9b97Skupfer true; \ 106*fb9f9b97Skupfer fi 107*fb9f9b97Skupfer 108*fb9f9b97Skupfer$(SVVS) $(CLOSED_XMODS): FRC 109*fb9f9b97Skupfer @if [ -f $(CLOSED)/uts/intel/$@/Makefile ]; then \ 110*fb9f9b97Skupfer cd $(CLOSED)/uts/intel/$@; pwd; \ 111*fb9f9b97Skupfer $(MAKE) $(NO_STATE) $(TARGET); \ 1127c478bd9Sstevel@tonic-gate else \ 1137c478bd9Sstevel@tonic-gate true; \ 1147c478bd9Sstevel@tonic-gate fi 1157c478bd9Sstevel@tonic-gate 1167c478bd9Sstevel@tonic-gateinstall_h check: FRC 1177c478bd9Sstevel@tonic-gate @cd sys; pwd; $(MAKE) $(TARGET) 1187c478bd9Sstevel@tonic-gate @cd asm; pwd; $(MAKE) $(TARGET) 1197c478bd9Sstevel@tonic-gate @cd ia32/sys; pwd; $(MAKE) $(TARGET) 1207c478bd9Sstevel@tonic-gate @cd amd64/sys; pwd; $(MAKE) $(TARGET) 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate# 1237c478bd9Sstevel@tonic-gate# Full kernel lint target. 1247c478bd9Sstevel@tonic-gate# 1257c478bd9Sstevel@tonic-gateLINT_TARGET = globallint 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gategloballint: 1287c478bd9Sstevel@tonic-gate @-$(ECHO) "\nFULL KERNEL: global crosschecks:" 1297c478bd9Sstevel@tonic-gate @-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2) 1307c478bd9Sstevel@tonic-gate 1317c478bd9Sstevel@tonic-gatelint: modlintlib .WAIT $(LINT_DEPS) 1327c478bd9Sstevel@tonic-gate 1337c478bd9Sstevel@tonic-gate# EXPORT DELETE START 1347c478bd9Sstevel@tonic-gate 1357c478bd9Sstevel@tonic-gateEXPORT_SRC: 1367c478bd9Sstevel@tonic-gate $(RM) Makefile+ 1377c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 1387c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 1397c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 1407c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile 1417c478bd9Sstevel@tonic-gate 1427c478bd9Sstevel@tonic-gate# EXPORT DELETE END 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 145