xref: /titanic_52/usr/src/uts/sun4u/javelin/Makefile (revision b819cea2f73f98c5662230cc9affc8cc84f77fcf)
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/javelin/Makefile
24# Copyright 2005 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 Javelin 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/javelin/Makefile.javelin
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
52modlist		:=	TARGET= modlist
53modlist		:=	NO_STATE= -K $$MODSTATE$$$$
54clean.lint	:=	TARGET= clean.lint
55check		:=	TARGET= check
56
57#
58#	Default build targets.
59#
60.KEEP_STATE:
61
62def all clean.lint clean clobber modlist: $(JAVELIN_KMODS) \
63		$(CLOSED_JAVELIN_KMODS)
64
65modlintlib:	$(JAVELIN_KMODS) $(CLOSED_JAVELIN_KMODS)
66
67install: 	$(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \
68		$(USR_JAVELIN_INC_DIR) \
69		$(USR_JAVELIN_SBIN_DIR) \
70		$(USR_JAVELIN_LIB_DIR) \
71		.WAIT $(JAVELIN_KMODS) $(CLOSED_JAVELIN_KMODS)
72
73install_h check:
74
75lint:		modlintlib
76
77#
78# The 'lint.platmod' target lints the javelin platform module against the sun4u
79# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
80# of minutes.  Due to the low ROI, it's not run by default, but it's a good
81# idea to run this if you change os/javelin.c.
82#
83LINT_LIBS	 = $(LINT_LIB) \
84		   -L$(JAVELIN_LINT_LIB_DIR) \
85		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
86		       $(CLOSED_LINT_KMODS:%=-l%) \
87		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
88
89lint.platmod:   modlintlib
90	@-$(ECHO) "\nJavelin Platform-dependent module: global crosschecks:"
91	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
92
93$(JAVELIN_KMODS):	FRC
94	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
95
96$(CLOSED_JAVELIN_KMODS):	FRC
97	cd $(CLOSED)/uts/sun4u/javelin/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
98
99#
100#	Include common targets.
101#
102include $(UTSBASE)/sun4u/javelin/Makefile.targ
103