xref: /titanic_50/usr/src/uts/sun4u/starfire/Makefile (revision 3eae19d9cf3390cf5b75e10c9c1945fd36ad856a)
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#	This makefile drives the production of the sun4u starfire platform
29#	module.
30#
31#	sun4u starfire implementation architecture dependent
32#
33
34#
35#	Path to the base of the uts directory tree (usually /usr/src/uts).
36#
37UTSBASE	= ../..
38
39include $(UTSBASE)/sun4u/starfire/Makefile.starfire
40
41#
42#	The following are SPARC specific (rather than sun4u) specific modules
43#	which are required for the sun4u kernel to completely lint. They are
44#	not involved in the build in any other way. In order to minimize
45#	build time, it is assumed that they are up to date. But since sun4u
46#	is really a separate architecture we cannot use the v7 sparc modules.
47#
48SPARC_LIB_DIR	= $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
49
50SPARC_LINTS	=
51
52SUN4U_LIB_DIR	= $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)
53
54#
55#
56#
57LINT_LIBS	= $(LINT_LIB) \
58		  $(SPARC_LINTS:%=$(SPARC_LIB_DIR)/llib-l%.ln) \
59		  $(LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln) \
60		  $(CLOSED_LINT_KMODS:%=$(SUN4U_LIB_DIR)/llib-l%.ln)
61
62def		:=	TARGET= def
63all		:=	TARGET= all
64install		:=	TARGET= install
65install_h	:=	TARGET= install_h
66clean		:=	TARGET= clean
67clobber		:=	TARGET= clobber
68lint		:=	TARGET= lint
69lintlib		:=	TARGET= lintlib
70modlintlib	:=	TARGET= modlintlib
71modlist		:=	TARGET= modlist
72modlist		:=	NO_STATE= -K $$MODSTATE$$$$
73clean.lint	:=	TARGET= clean.lint
74check		:=	TARGET= check
75
76IMPLEMENTED_PLATFORM	= SUNW,Ultra-Enterprise-10000
77
78#
79#	Default build targets.
80#
81.KEEP_STATE:
82
83.PARALLEL:	$(STARFIRE_KMODS)
84
85.NO_PARALLEL:	$(STARFIRE_CPU_KMODS)
86
87def all clean clobber clean.lint: genassym unix .WAIT \
88		$(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
89
90modlist:	unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
91
92install: $(ROOT_STARFIRE_DIR) $(USR_STARFIRE_DIR) \
93	$(USR_STARFIRE_INC_DIR) \
94	$(USR_STARFIRE_SBIN_DIR) \
95	$(USR_STARFIRE_LIB_DIR) \
96	genassym unix .WAIT $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
97
98lintlib:	unix
99
100modlintlib:	$(STARFIRE_KMODS) $(STARFIRE_CPU_KMODS)
101
102genassym unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS): FRC
103	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
104
105install_h check:	FRC
106	@cd sys; pwd; $(MAKE) $(TARGET)
107
108#
109#	Full kernel lint target.
110#
111LINT_TARGET	= globallint
112
113globallint:
114	@-$(ECHO) "\nStarfire KERNEL: global crosschecks:"
115	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
116
117lint:	lintlib .WAIT modlintlib .WAIT $(LINT_DEPS)
118
119#
120#	Include common targets.
121#
122include $(UTSBASE)/sun4u/starfire/Makefile.targ
123