xref: /titanic_50/usr/src/uts/sun4u/javelin/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/javelin/Makefile
24# Copyright (c) 1994-1998 by Sun Microsystems, Inc.
25# All rights reserved.
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
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: $(JAVELIN_KMODS)
61
62modlintlib:	$(JAVELIN_KMODS)
63
64install: 	$(ROOT_JAVELIN_DIR) $(USR_JAVELIN_DIR) \
65		$(USR_JAVELIN_INC_DIR) \
66		$(USR_JAVELIN_SBIN_DIR) \
67		$(USR_JAVELIN_LIB_DIR) \
68		.WAIT $(JAVELIN_KMODS)
69
70install_h check:
71
72lint:		modlintlib
73
74#
75# The 'lint.platmod' target lints the javelin platform module against the sun4u
76# kernel.  This ends up doing all the kernel cross-checks, so it takes a couple
77# of minutes.  Due to the low ROI, it's not run by default, but it's a good
78# idea to run this if you change os/javelin.c.
79#
80LINT_LIBS	 = $(LINT_LIB) \
81		   -L$(JAVELIN_LINT_LIB_DIR) \
82		   -L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
83		   -L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
84
85lint.platmod:   modlintlib
86	@-$(ECHO) "\nJavelin Platform-dependent module: global crosschecks:"
87	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
88
89$(JAVELIN_KMODS):	FRC
90	@cd $@; pwd; $(MAKE) $(TARGET)
91
92#
93#	Include common targets.
94#
95include $(UTSBASE)/sun4u/javelin/Makefile.targ
96