xref: /titanic_51/usr/src/uts/sun4u/taco/ppm/Makefile (revision b3697b90e692e3e5d859fb77d285d4c056d99eda)
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# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29#
30# This makefile drives the production of the platform power
31# management driver in the sun4u Taco system.
32#
33
34#
35#	Path to the base of the uts directory tree (usually /usr/src/uts).
36#
37UTSBASE	= ../../..
38
39#
40#	Define the module and object file sets.
41#
42MODULE		= ppm
43ROOTMODULE	= $(ROOT_TACO_DRV_DIR)/$(MODULE)
44CONF_SRCDIR	= $(UTSBASE)/sun4u/taco/io
45
46#
47#	Include common rules.
48#
49include $(UTSBASE)/sun4u/taco/Makefile.taco
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/taco/Makefile.targ
97