xref: /titanic_51/usr/src/uts/sun4u/fjlite/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# uts/sun4u/fjlite/Makefile
24# Copyright 2001-2003 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
55clean.lint	:=	TARGET= clean.lint
56check		:=	TARGET= check
57
58IMPLEMENTED_PLATFORM	= SUNW,UltraAX-i2
59
60#
61#	Default build targets.
62#
63.KEEP_STATE:
64
65.PARALLEL:	$(FJLITE_KMODS)
66
67def all clean clobber clean.lint:	$(FJLITE_KMODS)
68
69install:	$(ROOT_FJLITE_DIR) $(USR_FJLITE_DIR) \
70		.WAIT $(FJLITE_KMODS)
71
72modlintlib:	$(FJLITE_KMODS)
73
74$(FJLITE_KMODS):	FRC
75	@cd $@; pwd; $(MAKE) $(TARGET)
76
77install_h check:
78
79lint:	modlintlib .WAIT $(LINT_DEPS)
80
81LINT_LIBS	= $(LINT_LIB) \
82			-L$(FJLITE_LINT_LIB_DIR) \
83			-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
84			-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
85
86lint.platmod:   modlintlib
87	@-$(ECHO) "\nFJ-lite Platform-dependent module: global crosschecks:"
88	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
89
90#
91#	Include common targets.
92#
93include $(UTSBASE)/sun4u/fjlite/Makefile.targ
94