xref: /titanic_41/usr/src/uts/sun4u/cherrystone/Makefile (revision ba2be53024c0b999e74ba9adcd7d80fec5df8c57)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# uts/sun4u/cherrystone/Makefile
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28#	This makefile drives the production of all Cherrystone system
29#	dependent modules for the sun4u architecture.
30#
31
32#
33#	Path to the base of the uts directory tree (usually /usr/src/uts).
34#
35UTSBASE = ../..
36
37#
38#	Include common rules.
39#
40include $(UTSBASE)/sun4u/cherrystone/Makefile.cherrystone
41
42def		:=	TARGET= def
43all		:=	TARGET= all
44install		:=	TARGET= install
45install_h	:=	TARGET= install_h
46clean		:=	TARGET= clean
47clobber		:=	TARGET= clobber
48lint		:=	TARGET= lint
49lintlib		:=	TARGET= lintlib
50modlintlib	:=	TARGET= modlintlib
51modlist		:=	TARGET= modlist
52modlist		:=	NO_STATE= -K $$MODSTATE$$$$
53clean.lint	:=	TARGET= clean.lint
54check		:=	TARGET= check
55
56#
57#	Default build targets.
58#
59.KEEP_STATE:
60
61def all clean.lint clean clobber modlist: $(CHERRYSTONE_KMODS)
62
63modlintlib:	$(CHERRYSTONE_KMODS)
64
65IMPLEMENTED_PLATFORM	= SUNW,Sun-Fire-480R
66
67LINKED_PLATFORMS	= SUNW,Sun-Fire-V490
68
69install: 	$(ROOT_CHERRYSTONE_DIR) $(USR_CHERRYSTONE_DIR) \
70		$(USR_CHERRYSTONE_INC_DIR) \
71		$(USR_CHERRYSTONE_SBIN_DIR) \
72		$(USR_CHERRYSTONE_LIB_DIR) \
73		$(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%) \
74		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) \
75		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/include) \
76		$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/sbin) \
77		$(CHERRYSTONE_CRYPTO_LINKS) \
78		.WAIT $(CHERRYSTONE_KMODS)
79
80install_h check:	FRC
81	@cd sys; pwd; $(MAKE) $(TARGET)
82
83$(CHERRYSTONE_CRYPTO_LINKS): $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)
84	-$(RM) $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)/$@;
85	$(SYMLINK) $(ROOT_US3_CRYPTO_LINK)/$@ \
86	    $(ROOT_CHERRYSTONE_CRYPTO_DIR_64)/$@
87
88lint:		modlintlib
89
90LINT_LIBS	 = $(LINT_LIB) \
91		   -L$(CHERRYSTONE_LINT_LIB_DIR) \
92		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
93		       $(CLOSED_LINT_KMODS:%=-l%) \
94		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
95
96lint.platmod:   modlintlib
97	@-$(ECHO) "\nCherrystone Platform-dependent module: global crosschecks:"
98	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
99
100$(CHERRYSTONE_KMODS):	FRC
101	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
102
103#
104#
105#	Include common targets.
106#
107include $(UTSBASE)/sun4u/cherrystone/Makefile.targ
108