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