xref: /titanic_51/usr/src/uts/sun4v/montoya/Makefile (revision fd845fc0cb4fbc8e85f974e2e4eaacca1cc26e81)
1*fd845fc0Sks34972#
2*fd845fc0Sks34972# CDDL HEADER START
3*fd845fc0Sks34972#
4*fd845fc0Sks34972# The contents of this file are subject to the terms of the
5*fd845fc0Sks34972# Common Development and Distribution License (the "License").
6*fd845fc0Sks34972# You may not use this file except in compliance with the License.
7*fd845fc0Sks34972#
8*fd845fc0Sks34972# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*fd845fc0Sks34972# or http://www.opensolaris.org/os/licensing.
10*fd845fc0Sks34972# See the License for the specific language governing permissions
11*fd845fc0Sks34972# and limitations under the License.
12*fd845fc0Sks34972#
13*fd845fc0Sks34972# When distributing Covered Code, include this CDDL HEADER in each
14*fd845fc0Sks34972# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*fd845fc0Sks34972# If applicable, add the following below this CDDL HEADER, with the
16*fd845fc0Sks34972# fields enclosed by brackets "[]" replaced with your own identifying
17*fd845fc0Sks34972# information: Portions Copyright [yyyy] [name of copyright owner]
18*fd845fc0Sks34972#
19*fd845fc0Sks34972# CDDL HEADER END
20*fd845fc0Sks34972#
21*fd845fc0Sks34972#
22*fd845fc0Sks34972# uts/sun4v/montoya/Makefile
23*fd845fc0Sks34972# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*fd845fc0Sks34972# Use is subject to license terms.
25*fd845fc0Sks34972#
26*fd845fc0Sks34972#ident	"%Z%%M%	%I%	%E% SMI"
27*fd845fc0Sks34972#
28*fd845fc0Sks34972#	This makefile drives the production of the sun4v montoya platform
29*fd845fc0Sks34972#	modules.
30*fd845fc0Sks34972#
31*fd845fc0Sks34972#	sun4v montoya implementation architecture dependent
32*fd845fc0Sks34972#
33*fd845fc0Sks34972
34*fd845fc0Sks34972#
35*fd845fc0Sks34972#	Path to the base of the uts directory tree (usually /usr/src/uts).
36*fd845fc0Sks34972#
37*fd845fc0Sks34972UTSBASE	= ../..
38*fd845fc0Sks34972
39*fd845fc0Sks34972#
40*fd845fc0Sks34972#	Include common rules.
41*fd845fc0Sks34972#
42*fd845fc0Sks34972include $(UTSBASE)/sun4v/montoya/Makefile.montoya
43*fd845fc0Sks34972
44*fd845fc0Sks34972def		:=	TARGET= def
45*fd845fc0Sks34972all		:=	TARGET= all
46*fd845fc0Sks34972install		:=	TARGET= install
47*fd845fc0Sks34972install_h	:=	TARGET= install_h
48*fd845fc0Sks34972clean		:=	TARGET= clean
49*fd845fc0Sks34972clobber		:=	TARGET= clobber
50*fd845fc0Sks34972lint		:=	TARGET= lint
51*fd845fc0Sks34972lintlib		:=	TARGET= lintlib
52*fd845fc0Sks34972modlintlib	:=	TARGET= modlintlib
53*fd845fc0Sks34972modlist		:=	TARGET= modlist
54*fd845fc0Sks34972modlist		:=	NO_STATE= -K $$MODSTATE$$$$
55*fd845fc0Sks34972clean.lint	:=	TARGET= clean.lint
56*fd845fc0Sks34972check		:=	TARGET= check
57*fd845fc0Sks34972
58*fd845fc0Sks34972#
59*fd845fc0Sks34972#	Default build targets.
60*fd845fc0Sks34972#
61*fd845fc0Sks34972.KEEP_STATE:
62*fd845fc0Sks34972
63*fd845fc0Sks34972def all clean clobber clean.lint modlist:	$(MONTOYA_KMODS)
64*fd845fc0Sks34972
65*fd845fc0Sks34972lintlib:      unix
66*fd845fc0Sks34972
67*fd845fc0Sks34972modlintlib:   $(MONTOYA_KMODS)
68*fd845fc0Sks34972
69*fd845fc0Sks34972IMPLEMENTED_PLATFORM	= SUNW,Netra-CP3060
70*fd845fc0Sks34972
71*fd845fc0Sks34972install:	$(ROOT_MONTOYA_DIR) $(USR_MONTOYA_DIR) \
72*fd845fc0Sks34972		$(USR_MONTOYA_LIB_DIR) \
73*fd845fc0Sks34972		$(ROOT_MONTOYA_LIB_DIR) \
74*fd845fc0Sks34972		.WAIT $(MONTOYA_KMODS)
75*fd845fc0Sks34972
76*fd845fc0Sks34972$(MONTOYA_KMODS):	FRC
77*fd845fc0Sks34972	@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
78*fd845fc0Sks34972
79*fd845fc0Sks34972install_h check:	FRC
80*fd845fc0Sks34972
81*fd845fc0Sks34972lint:	modlintlib .WAIT $(LINT_DEPS)
82*fd845fc0Sks34972
83*fd845fc0Sks34972LINT_LIBS	= $(LINT_LIB) \
84*fd845fc0Sks34972			-L$(MONTOYA_LINT_LIB_DIR) \
85*fd845fc0Sks34972			-L$(LINT_LIB_DIR) $(LINT_KMODS:%=-l%) \
86*fd845fc0Sks34972			    $(CLOSED_LINT_KMODS:%=-l%) \
87*fd845fc0Sks34972			-L$(SPARC_LIB_DIR) $(SPARC_LINTS:%=-l%)
88*fd845fc0Sks34972
89*fd845fc0Sks34972lint.platmod:   modlintlib
90*fd845fc0Sks34972	@-$(ECHO) "\n$(IMPLEMENTED_PLATFORM) platform-dependent module: global crosschecks:"
91*fd845fc0Sks34972	@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
92*fd845fc0Sks34972
93*fd845fc0Sks34972EXPORT_SRC:
94*fd845fc0Sks34972	$(RM) Makefile+
95*fd845fc0Sks34972	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
96*fd845fc0Sks34972		< Makefile > Makefile+
97*fd845fc0Sks34972	$(MV) Makefile+ Makefile
98*fd845fc0Sks34972	$(CHMOD) 444 Makefile
99*fd845fc0Sks34972# EXPORT DELETE END
100*fd845fc0Sks34972
101*fd845fc0Sks34972#
102*fd845fc0Sks34972#	Include common targets.
103*fd845fc0Sks34972#
104*fd845fc0Sks34972include $(UTSBASE)/$(PLATFORM)/montoya/Makefile.targ
105