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