xref: /titanic_50/usr/src/uts/intel/Makefile (revision 6d9a41ff63273acce102bfb2d51423ed920e6dcd)
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# uts/intel/Makefile
23#
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# ident	"%Z%%M%	%I%	%E% SMI"
28#
29#
30#	This makefile drives the production of all implementation architecture
31#	independent modules for Intel processors.
32
33UTSBASE = ..
34
35include Makefile.intel
36
37LINT_LIBS	= $(LINT_LIB) $(GEN_LINT_LIB) \
38		  $(LINT_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
39
40# EXPORT DELETE START
41LINT_LIBS	+= $(SVVS_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln)
42LINT_XMODLIBS3	 = $(XMODS:lsimega=)
43LINT_XMODLIBS2	 = $(LINT_XMODLIBS3:adpu320=)
44LINT_XMODLIBS1	 = $(LINT_XMODLIBS2:e1000g=)
45LINT_XMODLIBS	 = $(LINT_XMODLIBS1:nge=)
46LINT_LIBS	+= $(LINT_XMODLIBS:%=$(LINT_LIB_DIR)/llib-l%.ln)
47
48#
49# dprov is delivered in the SUNWcrtptoint package.
50#
51DRV_KMODS	+= dprov
52
53#
54# dca is delivered in the SUNWdcar package.
55#
56DRV_KMODS	+= dca
57
58#
59# CRYPTO_EK_KMODS modules go in the encryption pack (SUNWcry*)
60# They need to be listed separately since they duplicate global symbols
61# causing the 2nd pass of lint on the kernel to complain. CRYPTO_EK_KMODS
62# should not be listed in the lint target.
63#
64CRYPTO_EK_KMODS	+= aes256
65CRYPTO_EK_KMODS	+= arcfour2048
66CRYPTO_EK_KMODS	+= blowfish448
67
68# EXPORT DELETE END
69
70#
71#
72def		:=	TARGET= def
73all		:=	TARGET= all
74install		:=	TARGET= install
75clean		:=	TARGET= clean
76clobber		:=	TARGET= clobber
77lint		:=	TARGET= lint
78modlintlib	:=	TARGET= modlintlib
79clean.lint	:=	TARGET= clean.lint
80check		:=	TARGET= check
81install_h	:=	TARGET= install_h
82
83.KEEP_STATE:
84
85.PARALLEL:	$(KMODS) $(SVVS) $(XMODS) config $(LINT_DEPS)
86
87def all install clean clobber: $(KMODS) $(SVVS) $(XMODS) config
88
89modlintlib clean.lint: $(LINT_KMODS) $(SVVS) $(XMODS)
90
91$(KMODS) $(SUBDIRS) config:	FRC
92	@cd $@; pwd; $(MAKE) $(TARGET)
93
94$(SVVS) $(XMODS):	FRC
95	@if [ -f $@/Makefile  ]; then \
96		cd $@; pwd; $(MAKE) $(TARGET); \
97	else \
98		true; \
99	fi
100
101install_h check:	FRC
102	@cd sys; pwd; $(MAKE) $(TARGET)
103	@cd asm; pwd; $(MAKE) $(TARGET)
104	@cd ia32/sys; pwd; $(MAKE) $(TARGET)
105	@cd amd64/sys; pwd; $(MAKE) $(TARGET)
106
107#
108#	Full kernel lint target.
109#
110LINT_TARGET	= globallint
111
112globallint:
113	@-$(ECHO) "\nFULL KERNEL: global crosschecks:"
114	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
115
116lint:	modlintlib .WAIT $(LINT_DEPS)
117
118# EXPORT DELETE START
119
120EXPORT_SRC:
121	$(RM) Makefile+
122	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
123	    < Makefile > Makefile+
124	$(MV) Makefile+ Makefile
125	$(CHMOD) 444 Makefile
126
127# EXPORT DELETE END
128
129include ../Makefile.targ
130