15cff7825Smh27603# 25cff7825Smh27603# CDDL HEADER START 35cff7825Smh27603# 45cff7825Smh27603# The contents of this file are subject to the terms of the 55cff7825Smh27603# Common Development and Distribution License (the "License"). 65cff7825Smh27603# You may not use this file except in compliance with the License. 75cff7825Smh27603# 85cff7825Smh27603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95cff7825Smh27603# or http://www.opensolaris.org/os/licensing. 105cff7825Smh27603# See the License for the specific language governing permissions 115cff7825Smh27603# and limitations under the License. 125cff7825Smh27603# 135cff7825Smh27603# When distributing Covered Code, include this CDDL HEADER in each 145cff7825Smh27603# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155cff7825Smh27603# If applicable, add the following below this CDDL HEADER, with the 165cff7825Smh27603# fields enclosed by brackets "[]" replaced with your own identifying 175cff7825Smh27603# information: Portions Copyright [yyyy] [name of copyright owner] 185cff7825Smh27603# 195cff7825Smh27603# CDDL HEADER END 205cff7825Smh27603# 215cff7825Smh27603# 225cff7825Smh27603# uts/i86pc/ppm/Makefile 235cff7825Smh27603# 245cff7825Smh27603# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 255cff7825Smh27603# Use is subject to license terms. 265cff7825Smh27603# 27*7014882cSRichard Lowe 285cff7825Smh27603# 295cff7825Smh27603# This makefile drives the production of the generic power managment 305cff7825Smh27603# pseudo driver 315cff7825Smh27603# 325cff7825Smh27603# i86pc implementation architecture dependent 335cff7825Smh27603# 345cff7825Smh27603 355cff7825Smh27603# 365cff7825Smh27603# Path to the base of the uts directory tree (usually /usr/src/uts). 375cff7825Smh27603# 385cff7825Smh27603UTSBASE = ../.. 395cff7825Smh27603 405cff7825Smh27603# 415cff7825Smh27603# Define the module and object file sets. 425cff7825Smh27603# 435cff7825Smh27603MODULE = ppm 445cff7825Smh27603OBJECTS = $(PPM_OBJS:%=$(OBJS_DIR)/%) 455cff7825Smh27603LINTS = $(PPM_OBJS:%.o=$(LINTS_DIR)/%.ln) 465cff7825Smh27603ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 475cff7825Smh27603CONF_SRCDIR = $(UTSBASE)/i86pc/io 485cff7825Smh27603 495cff7825Smh27603# 505cff7825Smh27603# Include common rules. 515cff7825Smh27603# 525cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.i86pc 535cff7825Smh27603 545cff7825Smh27603# 555cff7825Smh27603# Define targets 565cff7825Smh27603# 575cff7825Smh27603ALL_TARGET = $(BINARY) $(SRC_CONFILE) 585cff7825Smh27603LINT_TARGET = $(MODULE).lint 595cff7825Smh27603INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 605cff7825Smh27603 615cff7825Smh27603# 625cff7825Smh27603# lint pass one enforcement 635cff7825Smh27603# 645cff7825Smh27603CFLAGS += $(CCVERBOSE) 655cff7825Smh27603 66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 70*7014882cSRichard Lowe 715cff7825Smh27603# 725cff7825Smh27603# Link to acpica for ACPI services 735cff7825Smh27603# 745cff7825Smh27603LDFLAGS += -dy -N misc/acpica 755cff7825Smh27603 765cff7825Smh27603# 775cff7825Smh27603# Default build targets. 785cff7825Smh27603# 795cff7825Smh27603.KEEP_STATE: 805cff7825Smh27603 815cff7825Smh27603def: $(DEF_DEPS) 825cff7825Smh27603 835cff7825Smh27603all: $(ALL_DEPS) 845cff7825Smh27603 855cff7825Smh27603clean: $(CLEAN_DEPS) 865cff7825Smh27603 875cff7825Smh27603clobber: $(CLOBBER_DEPS) 885cff7825Smh27603 895cff7825Smh27603lint: $(LINT_DEPS) 905cff7825Smh27603 915cff7825Smh27603modlintlib: $(MODLINTLIB_DEPS) 925cff7825Smh27603 935cff7825Smh27603clean.lint: $(CLEAN_LINT_DEPS) 945cff7825Smh27603 955cff7825Smh27603install: $(INSTALL_DEPS) $(CONF_INSTALL_DEPS) 965cff7825Smh27603 975cff7825Smh27603# 985cff7825Smh27603# Include common targets. 995cff7825Smh27603# 1005cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.targ 101