xref: /titanic_41/usr/src/uts/sun4u/chicago/ppm/Makefile (revision 15d9d0b528387242011cdcc6190c9e598cfe3a07)
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/chicago/ppm/Makefile
24# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#pragma ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile drives the production of the platform power
30#	management driver in the sun4u Chicago system.
31#
32
33#
34#	Path to the base of the uts directory tree (usually /usr/src/uts).
35#
36UTSBASE	= ../../..
37
38#
39#	Define the module and object file sets.
40#
41MODULE		= ppm
42ROOTMODULE	= $(ROOT_CHICAGO_DRV_DIR)/$(MODULE)
43CONF_SRCDIR	= $(UTSBASE)/sun4u/chicago/io
44
45#
46#	Include common rules.
47#
48include $(UTSBASE)/sun4u/chicago/Makefile.chicago
49
50
51#
52# Define targets
53#
54ALL_TARGET	= $(SRC_CONFILE)
55INSTALL_TARGET	= $(ROOT_CONFFILE)
56
57#
58#	Overrides
59#
60NO_BUILDS	=
61ALL_BUILDS	= $(ALL_BUILDSONLY64)
62DEF_BUILDS	= $(DEF_BUILDSONLY64)
63CLEANLINTFILES	+= $(LINT32_FILES)
64
65#
66# The only thing we do from here is install the .conf file
67#
68CONF_INSTALL_DEPS	= $(DEF_BUILDS:%=conf_install.%)
69CONF_INSTALL_TARGS	= conf_install
70CONF_INSTALL_OBJ64	= $(CONF_INSTALL_TARGS:%=%.obj64)
71CONF_INSTALL_DBG64	= $(CONF_INSTALL_TARGS:%=%.debug64)
72
73$(CONF_INSTALL_OBJ64):	FRC
74	@BUILD_TYPE=OBJ64 $(MAKE) $(INSTALL_TARGET)
75
76$(CONF_INSTALL_DBG64):	FRC
77	@BUILD_TYPE=DBG64 $(MAKE) $(INSTALL_TARGET)
78
79#
80# Turn on doubleword alignment for 64 bit registers
81#
82CFLAGS += -dalign
83
84#
85#	Default build targets.
86#
87.KEEP_STATE:
88
89def all clean clobber lint modlintlib clean.lint:
90
91install:	$(CONF_INSTALL_DEPS)
92
93#
94#	Include common targets.
95#
96include $(UTSBASE)/sun4u/chicago/Makefile.targ
97