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 enchilada 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_ENCHILADA_DRV_DIR)/$(MODULE) 42CONF_SRCDIR = $(UTSBASE)/sun4u/enchilada/io 43 44# 45# Include common rules. 46# 47include $(UTSBASE)/sun4u/enchilada/Makefile.enchilada 48 49 50# 51# Define targets 52# 53ALL_TARGET = $(SRC_CONFILE) 54INSTALL_TARGET = $(ROOT_CONFFILE) 55 56# 57# Overrides 58# 59NO_BUILDS = 60ALL_BUILDS = $(ALL_BUILDSONLY64) 61DEF_BUILDS = $(DEF_BUILDSONLY64) 62 63# 64# The only thing we do from here is install the .conf file 65# 66CONF_INSTALL_DEPS = $(DEF_BUILDS:%=conf_install.%) 67CONF_INSTALL_TARGS = conf_install 68CONF_INSTALL_OBJ64 = $(CONF_INSTALL_TARGS:%=%.obj64) 69CONF_INSTALL_DBG64 = $(CONF_INSTALL_TARGS:%=%.debug64) 70 71$(CONF_INSTALL_OBJ64): FRC 72 @BUILD_TYPE=OBJ64 $(MAKE) $(INSTALL_TARGET) 73 74$(CONF_INSTALL_DBG64): FRC 75 @BUILD_TYPE=DBG64 $(MAKE) $(INSTALL_TARGET) 76 77# 78# Turn on doubleword alignment for 64 bit registers 79# 80CFLAGS += -dalign 81 82# 83# Default build targets. 84# 85.KEEP_STATE: 86 87def all clean clobber: 88 89install: $(CONF_INSTALL_DEPS) 90 91# 92# Include common targets. 93# 94include $(UTSBASE)/sun4u/enchilada/Makefile.targ 95