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