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