Makefile revision 580:70dfd36fd02c
1219841Smarcel#
2219841Smarcel# CDDL HEADER START
3219841Smarcel#
4219841Smarcel# The contents of this file are subject to the terms of the
5219841Smarcel# Common Development and Distribution License (the "License").
6219841Smarcel# You may not use this file except in compliance with the License.
7219841Smarcel#
8219841Smarcel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9219841Smarcel# or http://www.opensolaris.org/os/licensing.
10219841Smarcel# See the License for the specific language governing permissions
11219841Smarcel# and limitations under the License.
12219841Smarcel#
13219841Smarcel# When distributing Covered Code, include this CDDL HEADER in each
14219841Smarcel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15219841Smarcel# If applicable, add the following below this CDDL HEADER, with the
16219841Smarcel# fields enclosed by brackets "[]" replaced with your own identifying
17219841Smarcel# information: Portions Copyright [yyyy] [name of copyright owner]
18219841Smarcel#
19219841Smarcel# CDDL HEADER END
20219841Smarcel#
21219841Smarcel
22219841Smarcel#
23219841Smarcel# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24219841Smarcel# Use is subject to license terms.
25219841Smarcel#
26219841Smarcel# ident	"%Z%%M%	%I%	%E% SMI"
27219841Smarcel#
28219841Smarcel
29219841Smarcel#
30219841Smarcel#	This makefile drives the production of the sun4u default platform
31219841Smarcel#	module.
32219841Smarcel#
33219841Smarcel#	sun4u implementation architecture dependent
34219841Smarcel#
35219841Smarcel
36219841Smarcel#
37219841Smarcel#	Path to the base of the uts directory tree (usually /usr/src/uts).
38219841Smarcel#
39219841SmarcelUTSBASE	= ../..
40219841Smarcel
41219841Smarcel#
42219841Smarcel#	Define the module and object file sets.
43219841Smarcel#
44219841SmarcelMODULE		= platmod
45219841SmarcelOBJECTS		= $(PLATMOD_OBJS:%=$(OBJS_DIR)/%)
46219841SmarcelLINTS		= $(PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
47219841SmarcelROOTMODULE	= $(ROOT_PSM_PLAT_DIR)/$(MODULE)
48219841Smarcel
49219841SmarcelPLAT_DIR	= .
50219841Smarcel
51219841Smarcel#
52219841Smarcel#	Include common rules.
53219841Smarcel#
54219841Smarcelinclude $(UTSBASE)/sun4u/Makefile.sun4u
55219841Smarcel
56219841Smarcel#
57219841Smarcel#	Override defaults
58219841Smarcel#
59219841SmarcelCLEANFILES	+= $(PLATLIB)
60219841Smarcel
61219841Smarcel#
62219841Smarcel#	Define targets
63219841Smarcel#
64219841SmarcelALL_TARGET	= $(PLATLIB)
65219841SmarcelLINT_TARGET	= $(MODULE).lint
66219841SmarcelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
67219841Smarcel
68219841Smarcel#
69219841Smarcel# lint pass one enforcement
70219841Smarcel#
71219841SmarcelCFLAGS += $(CCVERBOSE)
72219841Smarcel
73219841Smarcel#
74219841Smarcel#	Default build targets.
75219841Smarcel#
76219841Smarcel.KEEP_STATE:
77219841Smarcel
78219841Smarceldef:		$(DEF_DEPS)
79219841Smarcel
80219841Smarcelall:		$(ALL_DEPS)
81219841Smarcel
82219841Smarcelclean:		$(CLEAN_DEPS)
83219841Smarcel
84219841Smarcelclobber:	$(CLOBBER_DEPS)
85219841Smarcel
86219841Smarcellint:		$(LINT_DEPS)
87219841Smarcel
88219841Smarcelmodlintlib:	$(MODLINTLIB_DEPS)
89219841Smarcel
90219841Smarcelclean.lint:	$(CLEAN_LINT_DEPS)
91219841Smarcel
92219841Smarcelinstall:	$(INSTALL_DEPS)
93219841Smarcel
94219841Smarcel$(PLATLIB):	$(BINARY)
95219841Smarcel	$(BUILD.SO) $(BINARY)
96219841Smarcel
97219841Smarcel#
98219841Smarcel#	Include common targets.
99219841Smarcel#
100219841Smarcelinclude $(UTSBASE)/sun4u/Makefile.targ
101219841Smarcel