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