xref: /titanic_50/usr/src/uts/sun4u/starfire/Makefile (revision fa9e4066f08beec538e775443c5be79dd423fcab)
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 (c) 1997,1999 by Sun Microsystems, Inc.
26# All rights reserved.
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
61def		:=	TARGET= def
62all		:=	TARGET= all
63install		:=	TARGET= install
64install_h	:=	TARGET= install_h
65clean		:=	TARGET= clean
66clobber		:=	TARGET= clobber
67lint		:=	TARGET= lint
68lintlib		:=	TARGET= lintlib
69modlintlib	:=	TARGET= modlintlib
70clean.lint	:=	TARGET= clean.lint
71check		:=	TARGET= check
72
73IMPLEMENTED_PLATFORM	= SUNW,Ultra-Enterprise-10000
74
75#
76#	Default build targets.
77#
78.KEEP_STATE:
79
80.PARALLEL:	$(STARFIRE_KMODS)
81
82.NO_PARALLEL:	$(STARFIRE_CPU_KMODS)
83
84def all clean clobber clean.lint: genassym unix .WAIT \
85		$(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
86
87install: $(ROOT_STARFIRE_DIR) $(USR_STARFIRE_DIR) \
88	$(USR_STARFIRE_INC_DIR) \
89	$(USR_STARFIRE_SBIN_DIR) \
90	$(USR_STARFIRE_LIB_DIR) \
91	genassym unix .WAIT $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS)
92
93lintlib:	unix
94
95modlintlib:	$(STARFIRE_KMODS) $(STARFIRE_CPU_KMODS)
96
97genassym unix $(STARFIRE_CPU_KMODS) $(STARFIRE_KMODS): FRC
98	@cd $@; pwd; $(MAKE) $(TARGET)
99
100install_h check:	FRC
101	@cd sys; pwd; $(MAKE) $(TARGET)
102
103#
104#	Full kernel lint target.
105#
106LINT_TARGET	= globallint
107
108globallint:
109	@-$(ECHO) "\nStarfire KERNEL: global crosschecks:"
110	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
111
112lint:	lintlib .WAIT modlintlib .WAIT $(LINT_DEPS)
113
114#
115#	Include common targets.
116#
117include $(UTSBASE)/sun4u/starfire/Makefile.targ
118