xref: /titanic_51/usr/src/uts/sun4u/fjlite/Makefile (revision 672986541be54a7a471bb088e60780c37e371d7e)
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/fjlite/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 the sun4u fjlite platform
30#	module.
31#
32#	sun4u fjlite implementation architecture dependent
33#
34
35#
36#	Path to the base of the uts directory tree (usually /usr/src/uts).
37#
38UTSBASE	= ../..
39
40include $(UTSBASE)/sun4u/fjlite/Makefile.fjlite
41
42#
43#
44#
45
46def		:=	TARGET= def
47all		:=	TARGET= all
48install		:=	TARGET= install
49install_h	:=	TARGET= install_h
50clean		:=	TARGET= clean
51clobber		:=	TARGET= clobber
52lint		:=	TARGET= lint
53lintlib		:=	TARGET= lintlib
54modlintlib	:=	TARGET= modlintlib
55modlist		:=	TARGET= modlist
56modlist		:=	NO_STATE= -K $$MODSTATE$$$$
57clean.lint	:=	TARGET= clean.lint
58check		:=	TARGET= check
59
60IMPLEMENTED_PLATFORM	= SUNW,UltraAX-i2
61
62#
63#	Default build targets.
64#
65.KEEP_STATE:
66
67.PARALLEL:	$(FJLITE_KMODS)
68
69def all clean clobber clean.lint modlist:	$(FJLITE_KMODS)
70
71install:	$(ROOT_FJLITE_DIR) $(USR_FJLITE_DIR) \
72		.WAIT $(FJLITE_KMODS)
73
74modlintlib:	$(FJLITE_KMODS)
75
76$(FJLITE_KMODS):	FRC
77	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
78
79install_h check:
80
81lint:	modlintlib .WAIT $(LINT_DEPS)
82
83LINT_LIBS	= $(LINT_LIB) \
84			-L$(FJLITE_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) "\nFJ-lite Platform-dependent module: global crosschecks:"
91	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
92
93#
94#	Include common targets.
95#
96include $(UTSBASE)/sun4u/fjlite/Makefile.targ
97