1*5cff7825Smh27603# 2*5cff7825Smh27603# CDDL HEADER START 3*5cff7825Smh27603# 4*5cff7825Smh27603# The contents of this file are subject to the terms of the 5*5cff7825Smh27603# Common Development and Distribution License (the "License"). 6*5cff7825Smh27603# You may not use this file except in compliance with the License. 7*5cff7825Smh27603# 8*5cff7825Smh27603# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5cff7825Smh27603# or http://www.opensolaris.org/os/licensing. 10*5cff7825Smh27603# See the License for the specific language governing permissions 11*5cff7825Smh27603# and limitations under the License. 12*5cff7825Smh27603# 13*5cff7825Smh27603# When distributing Covered Code, include this CDDL HEADER in each 14*5cff7825Smh27603# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5cff7825Smh27603# If applicable, add the following below this CDDL HEADER, with the 16*5cff7825Smh27603# fields enclosed by brackets "[]" replaced with your own identifying 17*5cff7825Smh27603# information: Portions Copyright [yyyy] [name of copyright owner] 18*5cff7825Smh27603# 19*5cff7825Smh27603# CDDL HEADER END 20*5cff7825Smh27603# 21*5cff7825Smh27603# 22*5cff7825Smh27603# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*5cff7825Smh27603# Use is subject to license terms. 24*5cff7825Smh27603# 25*5cff7825Smh27603#ident "%Z%%M% %I% %E% SMI" 26*5cff7825Smh27603# 27*5cff7825Smh27603# This makefile drives the production of the cpu driver 28*5cff7825Smh27603# kernel module. 29*5cff7825Smh27603# 30*5cff7825Smh27603 31*5cff7825Smh27603# 32*5cff7825Smh27603# Path to the base of the uts directory tree (usually /usr/src/uts). 33*5cff7825Smh27603# 34*5cff7825Smh27603UTSBASE = ../.. 35*5cff7825Smh27603 36*5cff7825Smh27603# 37*5cff7825Smh27603# Define the module and object file sets. 38*5cff7825Smh27603# 39*5cff7825Smh27603MODULE = cpudrv 40*5cff7825Smh27603OBJECTS = $(CPUDRV_OBJS:%=$(OBJS_DIR)/%) 41*5cff7825Smh27603LINTS = $(CPUDRV_OBJS:%.o=$(LINTS_DIR)/%.ln) 42*5cff7825Smh27603ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 43*5cff7825Smh27603 44*5cff7825Smh27603# 45*5cff7825Smh27603# Include common rules. 46*5cff7825Smh27603# 47*5cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.i86pc 48*5cff7825Smh27603 49*5cff7825Smh27603# 50*5cff7825Smh27603# Define targets 51*5cff7825Smh27603# 52*5cff7825Smh27603ALL_TARGET = $(BINARY) 53*5cff7825Smh27603LINT_TARGET = $(MODULE).lint 54*5cff7825Smh27603INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 55*5cff7825Smh27603 56*5cff7825Smh27603# 57*5cff7825Smh27603# lint pass one enforcement 58*5cff7825Smh27603# 59*5cff7825Smh27603CFLAGS += $(CCVERBOSE) 60*5cff7825Smh27603 61*5cff7825Smh27603# 62*5cff7825Smh27603# Turn on doubleword alignment for 64 bit registers 63*5cff7825Smh27603# 64*5cff7825Smh27603CFLAGS += -dalign 65*5cff7825Smh27603 66*5cff7825Smh27603# 67*5cff7825Smh27603# Link to acpica for ACPI services 68*5cff7825Smh27603# 69*5cff7825Smh27603LDFLAGS += -dy -N misc/acpica 70*5cff7825Smh27603 71*5cff7825Smh27603# 72*5cff7825Smh27603# Default build targets. 73*5cff7825Smh27603# 74*5cff7825Smh27603.KEEP_STATE: 75*5cff7825Smh27603 76*5cff7825Smh27603def: $(DEF_DEPS) 77*5cff7825Smh27603 78*5cff7825Smh27603all: $(ALL_DEPS) 79*5cff7825Smh27603 80*5cff7825Smh27603clean: $(CLEAN_DEPS) 81*5cff7825Smh27603 82*5cff7825Smh27603clobber: $(CLOBBER_DEPS) 83*5cff7825Smh27603 84*5cff7825Smh27603lint: $(LINT_DEPS) 85*5cff7825Smh27603 86*5cff7825Smh27603modlintlib: $(MODLINTLIB_DEPS) 87*5cff7825Smh27603 88*5cff7825Smh27603clean.lint: $(CLEAN_LINT_DEPS) 89*5cff7825Smh27603 90*5cff7825Smh27603install: $(INSTALL_DEPS) 91*5cff7825Smh27603 92*5cff7825Smh27603# 93*5cff7825Smh27603# Include common targets. 94*5cff7825Smh27603# 95*5cff7825Smh27603include $(UTSBASE)/i86pc/Makefile.targ 96