1*a3114836SGerry Liu# 2*a3114836SGerry Liu# CDDL HEADER START 3*a3114836SGerry Liu# 4*a3114836SGerry Liu# The contents of this file are subject to the terms of the 5*a3114836SGerry Liu# Common Development and Distribution License (the "License"). 6*a3114836SGerry Liu# You may not use this file except in compliance with the License. 7*a3114836SGerry Liu# 8*a3114836SGerry Liu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*a3114836SGerry Liu# or http://www.opensolaris.org/os/licensing. 10*a3114836SGerry Liu# See the License for the specific language governing permissions 11*a3114836SGerry Liu# and limitations under the License. 12*a3114836SGerry Liu# 13*a3114836SGerry Liu# When distributing Covered Code, include this CDDL HEADER in each 14*a3114836SGerry Liu# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*a3114836SGerry Liu# If applicable, add the following below this CDDL HEADER, with the 16*a3114836SGerry Liu# fields enclosed by brackets "[]" replaced with your own identifying 17*a3114836SGerry Liu# information: Portions Copyright [yyyy] [name of copyright owner] 18*a3114836SGerry Liu# 19*a3114836SGerry Liu# CDDL HEADER END 20*a3114836SGerry Liu# 21*a3114836SGerry Liu# 22*a3114836SGerry Liu# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*a3114836SGerry Liu# Use is subject to license terms. 24*a3114836SGerry Liu# 25*a3114836SGerry Liu# Copyright (c) 2010, Intel Corporation. 26*a3114836SGerry Liu# All rights reserved. 27*a3114836SGerry Liu# 28*a3114836SGerry Liu# This makefile drives the production of the dr driver module. 29*a3114836SGerry Liu# 30*a3114836SGerry Liu# i86pc architecture dependent 31*a3114836SGerry Liu# 32*a3114836SGerry Liu 33*a3114836SGerry Liu# 34*a3114836SGerry Liu# Path to the base of the uts directory tree (usually /usr/src/uts). 35*a3114836SGerry Liu# 36*a3114836SGerry LiuUTSBASE = ../.. 37*a3114836SGerry LiuPLATFORM = i86pc 38*a3114836SGerry Liu 39*a3114836SGerry Liu# 40*a3114836SGerry Liu# Define the module and object file sets. 41*a3114836SGerry Liu# 42*a3114836SGerry LiuMODULE = dr 43*a3114836SGerry LiuOBJECTS = $(DR_OBJS:%=$(OBJS_DIR)/%) 44*a3114836SGerry LiuLINTS = $(DR_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*a3114836SGerry LiuROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 46*a3114836SGerry LiuCONF_SRCDIR = $(UTSBASE)/i86pc/io/dr 47*a3114836SGerry Liu 48*a3114836SGerry Liu# 49*a3114836SGerry Liu# Include common rules. 50*a3114836SGerry Liu# 51*a3114836SGerry Liuinclude $(UTSBASE)/i86pc/Makefile.i86pc 52*a3114836SGerry Liu 53*a3114836SGerry Liu# 54*a3114836SGerry Liu# Define targets 55*a3114836SGerry Liu# 56*a3114836SGerry LiuALL_TARGET = $(BINARY) $(SRC_CONFILE) 57*a3114836SGerry LiuLINT_TARGET = $(MODULE).lint 58*a3114836SGerry LiuINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59*a3114836SGerry Liu 60*a3114836SGerry Liu# 61*a3114836SGerry Liu# Overrides 62*a3114836SGerry Liu# 63*a3114836SGerry LiuDEF_BUILDS = $(DEF_BUILDS64) 64*a3114836SGerry LiuALL_BUILDS = $(ALL_BUILDS64) 65*a3114836SGerry Liu 66*a3114836SGerry Liu# 67*a3114836SGerry Liu# lint pass one enforcement 68*a3114836SGerry Liu# 69*a3114836SGerry LiuCFLAGS += $(CCVERBOSE) 70*a3114836SGerry Liu 71*a3114836SGerry Liu# 72*a3114836SGerry Liu# module dependencies 73*a3114836SGerry Liu# 74*a3114836SGerry LiuLDFLAGS += -dy -Nmisc/drmach_acpi 75*a3114836SGerry Liu 76*a3114836SGerry LiuCLEANFILES += $(DR_GENERR) 77*a3114836SGerry LiuCLEANFILES += $(DR_IO)/dr_err.c 78*a3114836SGerry Liu 79*a3114836SGerry Liu# 80*a3114836SGerry Liu# Default build targets. 81*a3114836SGerry Liu# 82*a3114836SGerry Liu.KEEP_STATE: 83*a3114836SGerry Liu 84*a3114836SGerry Liudef: $(DEF_DEPS) 85*a3114836SGerry Liu 86*a3114836SGerry Liuall: $(ALL_DEPS) 87*a3114836SGerry Liu 88*a3114836SGerry Liuclean: $(CLEAN_DEPS) 89*a3114836SGerry Liu 90*a3114836SGerry Liuclobber: $(CLOBBER_DEPS) 91*a3114836SGerry Liu 92*a3114836SGerry Liulint: $(LINT_DEPS) 93*a3114836SGerry Liu 94*a3114836SGerry Liumodlintlib: $(MODLINTLIB_DEPS) lint32 95*a3114836SGerry Liu 96*a3114836SGerry Liuclean.lint: $(CLEAN_LINT_DEPS) 97*a3114836SGerry Liu 98*a3114836SGerry Liuinstall: $(INSTALL_DEPS) $(CONF_INSTALL_DEPS) 99*a3114836SGerry Liu 100*a3114836SGerry Liu# 101*a3114836SGerry Liu# Include common targets. 102*a3114836SGerry Liu# 103*a3114836SGerry Liuinclude $(UTSBASE)/i86pc/Makefile.targ 104*a3114836SGerry Liu 105