xref: /titanic_50/usr/src/uts/sun4u/littleneck/Makefile (revision 554ff184129088135ad2643c1c9832174a17be88)
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# uts/sun4u/littleneck/Makefile
24# Copyright 1994-2003 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile drives the production of all Littleneck system
30#	dependent modules for the sun4u architecture.
31#
32
33#
34#	Path to the base of the uts directory tree (usually /usr/src/uts).
35#
36UTSBASE = ../..
37
38#
39#	Include common rules.
40#
41include $(UTSBASE)/sun4u/littleneck/Makefile.littleneck
42
43def		:=	TARGET= def
44all		:=	TARGET= all
45install		:=	TARGET= install
46install_h	:=	TARGET= install_h
47clean		:=	TARGET= clean
48clobber		:=	TARGET= clobber
49lint		:=	TARGET= lint
50lintlib		:=	TARGET= lintlib
51modlintlib	:=	TARGET= modlintlib
52clean.lint	:=	TARGET= clean.lint
53check		:=	TARGET= check
54
55#
56#	Default build targets.
57#
58.KEEP_STATE:
59
60def all clean.lint clean clobber: $(LITTLENECK_KMODS)
61
62modlintlib:	$(LITTLENECK_KMODS)
63
64# EXPORT DELETE START
65#
66# aes256 is delivered in the SUNWcryr package which is removed from
67# the EXPORT_SRC build.
68#
69LITTLENECK_CRYPTO_LINKS	+= aes256
70# EXPORT DELETE END
71
72install: 	$(ROOT_LITTLENECK_DIR) $(USR_LITTLENECK_DIR) \
73		$(USR_LITTLENECK_INC_DIR) \
74		$(USR_LITTLENECK_SBIN_DIR) \
75		$(USR_LITTLENECK_LIB_DIR) \
76		$(LITTLENECK_CRYPTO_LINKS) \
77		.WAIT $(LITTLENECK_KMODS)
78
79install_h check:
80
81lint:		modlintlib
82
83LINT_LIBS	 = $(LINT_LIB) \
84		   -L$(LITTLENECK_LINT_LIB_DIR) \
85		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
86		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
87
88lint.platmod:   modlintlib
89	@-$(ECHO) "\nLittleneck Platform-dependent module: global crosschecks:"
90	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
91
92$(LITTLENECK_KMODS):	FRC
93	@cd $@; pwd; $(MAKE) $(TARGET)
94
95$(LITTLENECK_CRYPTO_LINKS): $(ROOT_LITTLENECK_CRYPTO_DIR_64)
96	-$(RM) $(ROOT_LITTLENECK_CRYPTO_DIR_64)/$@;
97	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ \
98	    $(ROOT_LITTLENECK_CRYPTO_DIR_64)/$@
99
100# EXPORT DELETE START
101
102EXPORT_SRC:
103	$(RM) Makefile+
104	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
105	    < Makefile > Makefile+
106	$(MV) Makefile+ Makefile
107	$(CHMOD) 444 Makefile
108
109# EXPORT DELETE END
110
111#
112#
113#	Include common targets.
114#
115include $(UTSBASE)/sun4u/littleneck/Makefile.targ
116