1*2df1fe9cSrandyf# 2*2df1fe9cSrandyf# CDDL HEADER START 3*2df1fe9cSrandyf# 4*2df1fe9cSrandyf# The contents of this file are subject to the terms of the 5*2df1fe9cSrandyf# Common Development and Distribution License (the "License"). 6*2df1fe9cSrandyf# You may not use this file except in compliance with the License. 7*2df1fe9cSrandyf# 8*2df1fe9cSrandyf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2df1fe9cSrandyf# or http://www.opensolaris.org/os/licensing. 10*2df1fe9cSrandyf# See the License for the specific language governing permissions 11*2df1fe9cSrandyf# and limitations under the License. 12*2df1fe9cSrandyf# 13*2df1fe9cSrandyf# When distributing Covered Code, include this CDDL HEADER in each 14*2df1fe9cSrandyf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2df1fe9cSrandyf# If applicable, add the following below this CDDL HEADER, with the 16*2df1fe9cSrandyf# fields enclosed by brackets "[]" replaced with your own identifying 17*2df1fe9cSrandyf# information: Portions Copyright [yyyy] [name of copyright owner] 18*2df1fe9cSrandyf# 19*2df1fe9cSrandyf# CDDL HEADER END 20*2df1fe9cSrandyf# 21*2df1fe9cSrandyf# 22*2df1fe9cSrandyf# uts/i86pc/cpr/Makefile 23*2df1fe9cSrandyf# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*2df1fe9cSrandyf# Use is subject to license terms. 25*2df1fe9cSrandyf# 26*2df1fe9cSrandyf#ident "%Z%%M% %I% %E% SMI" 27*2df1fe9cSrandyf# 28*2df1fe9cSrandyf# This makefile drives the production of the cpr misc kernel module. 29*2df1fe9cSrandyf# 30*2df1fe9cSrandyf# i86pc implementation architecture dependent 31*2df1fe9cSrandyf# 32*2df1fe9cSrandyf 33*2df1fe9cSrandyf# 34*2df1fe9cSrandyf# Path to the base of the uts directory tree (usually /usr/src/uts). 35*2df1fe9cSrandyf# 36*2df1fe9cSrandyfUTSBASE = ../.. 37*2df1fe9cSrandyf 38*2df1fe9cSrandyf# 39*2df1fe9cSrandyf# Define the module and object file sets. 40*2df1fe9cSrandyf# 41*2df1fe9cSrandyfMODULE = cpr 42*2df1fe9cSrandyf# 43*2df1fe9cSrandyf# 44*2df1fe9cSrandyfOBJECTS = $(CPR_IMPL_OBJS:%=$(OBJS_DIR)/%) \ 45*2df1fe9cSrandyf $(CPR_OBJS:%=$(OBJS_DIR)/%) \ 46*2df1fe9cSrandyf $(CPR_INTEL_OBJS:%=$(OBJS_DIR)/%) 47*2df1fe9cSrandyfLINTS = $(CPR_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 48*2df1fe9cSrandyf $(CPR_IMPL_OBJS:%.o=$(LINTS_DIR)/%.ln) \ 49*2df1fe9cSrandyf $(CPR_INTEL_OBJS:%.o=$(LINTS_DIR)/%.ln) 50*2df1fe9cSrandyfROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE) 51*2df1fe9cSrandyf 52*2df1fe9cSrandyf# 53*2df1fe9cSrandyf# Include common rules. 54*2df1fe9cSrandyf# 55*2df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.i86pc 56*2df1fe9cSrandyf 57*2df1fe9cSrandyf# 58*2df1fe9cSrandyf# Override defaults 59*2df1fe9cSrandyf# 60*2df1fe9cSrandyfLDFLAGS += -dy -N misc/acpica 61*2df1fe9cSrandyf 62*2df1fe9cSrandyf# 63*2df1fe9cSrandyf# Define targets 64*2df1fe9cSrandyf# 65*2df1fe9cSrandyfALL_TARGET = $(BINARY) 66*2df1fe9cSrandyfLINT_TARGET = $(MODULE).lint 67*2df1fe9cSrandyfINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 68*2df1fe9cSrandyf 69*2df1fe9cSrandyf# 70*2df1fe9cSrandyf# lint pass one enforcement 71*2df1fe9cSrandyf# 72*2df1fe9cSrandyfCFLAGS += $(CCVERBOSE) 73*2df1fe9cSrandyf 74*2df1fe9cSrandyf# 75*2df1fe9cSrandyf# Default build targets. 76*2df1fe9cSrandyf# 77*2df1fe9cSrandyf.KEEP_STATE: 78*2df1fe9cSrandyf 79*2df1fe9cSrandyfdef: $(DEF_DEPS) 80*2df1fe9cSrandyf 81*2df1fe9cSrandyfall: $(ALL_DEPS) 82*2df1fe9cSrandyf 83*2df1fe9cSrandyfclean: $(CLEAN_DEPS) 84*2df1fe9cSrandyf 85*2df1fe9cSrandyfclobber: $(CLOBBER_DEPS) 86*2df1fe9cSrandyf 87*2df1fe9cSrandyflint: $(LINT_DEPS) 88*2df1fe9cSrandyf 89*2df1fe9cSrandyfmodlintlib: $(MODLINTLIB_DEPS) 90*2df1fe9cSrandyf 91*2df1fe9cSrandyfclean.lint: $(CLEAN_LINT_DEPS) 92*2df1fe9cSrandyf 93*2df1fe9cSrandyfinstall: $(INSTALL_DEPS) 94*2df1fe9cSrandyf 95*2df1fe9cSrandyf# 96*2df1fe9cSrandyf# Include common targets. 97*2df1fe9cSrandyf# 98*2df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.targ 99