1dcda19f5SSusan Scheufele# 2dcda19f5SSusan Scheufele# CDDL HEADER START 3dcda19f5SSusan Scheufele# 4dcda19f5SSusan Scheufele# The contents of this file are subject to the terms of the 5dcda19f5SSusan Scheufele# Common Development and Distribution License (the "License"). 6dcda19f5SSusan Scheufele# You may not use this file except in compliance with the License. 7dcda19f5SSusan Scheufele# 8dcda19f5SSusan Scheufele# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9dcda19f5SSusan Scheufele# or http://www.opensolaris.org/os/licensing. 10dcda19f5SSusan Scheufele# See the License for the specific language governing permissions 11dcda19f5SSusan Scheufele# and limitations under the License. 12dcda19f5SSusan Scheufele# 13dcda19f5SSusan Scheufele# When distributing Covered Code, include this CDDL HEADER in each 14dcda19f5SSusan Scheufele# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15dcda19f5SSusan Scheufele# If applicable, add the following below this CDDL HEADER, with the 16dcda19f5SSusan Scheufele# fields enclosed by brackets "[]" replaced with your own identifying 17dcda19f5SSusan Scheufele# information: Portions Copyright [yyyy] [name of copyright owner] 18dcda19f5SSusan Scheufele# 19dcda19f5SSusan Scheufele# CDDL HEADER END 20dcda19f5SSusan Scheufele# 21dcda19f5SSusan Scheufele# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22dcda19f5SSusan Scheufele# Use is subject to license terms. 23dcda19f5SSusan Scheufele# 24dcda19f5SSusan Scheufele# uts/intel/mr_sas/Makefile 25dcda19f5SSusan Scheufele# 26dcda19f5SSusan Scheufele# This makefile drives the production of the mr_sas driver kernel module. 27dcda19f5SSusan Scheufele# 28dcda19f5SSusan Scheufele# intel implementation architecture dependent 29dcda19f5SSusan Scheufele# 30dcda19f5SSusan Scheufele 31dcda19f5SSusan Scheufele# 32dcda19f5SSusan Scheufele# Path to the base of the uts directory tree (usually /usr/src/uts). 33dcda19f5SSusan Scheufele# 34dcda19f5SSusan ScheufeleUTSBASE = ../.. 35dcda19f5SSusan Scheufele 36dcda19f5SSusan Scheufele# 37dcda19f5SSusan Scheufele# Define the module and object file sets. 38dcda19f5SSusan Scheufele# 39dcda19f5SSusan ScheufeleMODULE = mr_sas 40dcda19f5SSusan ScheufeleOBJECTS = $(MR_SAS_OBJS:%=$(OBJS_DIR)/%) 41dcda19f5SSusan ScheufeleLINTS = $(MR_SAS_OBJS:%.o=$(LINTS_DIR)/%.ln) 42dcda19f5SSusan ScheufeleROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43dcda19f5SSusan ScheufeleCONF_SRCDIR = $(UTSBASE)/common/io/mr_sas 44dcda19f5SSusan Scheufele 45dcda19f5SSusan Scheufele# 46dcda19f5SSusan Scheufele# Include common rules. 47dcda19f5SSusan Scheufele# 48dcda19f5SSusan Scheufeleinclude $(UTSBASE)/intel/Makefile.intel 49dcda19f5SSusan Scheufele 50dcda19f5SSusan Scheufele# 51dcda19f5SSusan Scheufele# Define targets 52dcda19f5SSusan Scheufele# 53dcda19f5SSusan ScheufeleALL_TARGET = $(BINARY) $(CONFMOD) 54dcda19f5SSusan ScheufeleLINT_TARGET = $(MODULE).lint 55dcda19f5SSusan ScheufeleINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 56dcda19f5SSusan Scheufele 57dcda19f5SSusan Scheufele# 58dcda19f5SSusan Scheufele# Kernel Module Dependencies 59dcda19f5SSusan Scheufele# 60dcda19f5SSusan ScheufeleLDFLAGS += -dy -Nmisc/scsi 61dcda19f5SSusan Scheufele 62*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 63*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 64*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 65*7014882cSRichard Lowe 66dcda19f5SSusan Scheufele# 67dcda19f5SSusan Scheufele# Default build targets. 68dcda19f5SSusan Scheufele# 69dcda19f5SSusan Scheufele.KEEP_STATE: 70dcda19f5SSusan Scheufele 71dcda19f5SSusan Scheufeledef: $(DEF_DEPS) 72dcda19f5SSusan Scheufele 73dcda19f5SSusan Scheufeleall: $(ALL_DEPS) 74dcda19f5SSusan Scheufele 75dcda19f5SSusan Scheufeleclean: $(CLEAN_DEPS) 76dcda19f5SSusan Scheufele 77dcda19f5SSusan Scheufeleclobber: $(CLOBBER_DEPS) 78dcda19f5SSusan Scheufele 79dcda19f5SSusan Scheufelelint: $(LINT_DEPS) 80dcda19f5SSusan Scheufele 81dcda19f5SSusan Scheufelemodlintlib: $(MODLINTLIB_DEPS) 82dcda19f5SSusan Scheufele 83dcda19f5SSusan Scheufeleclean.lint: $(CLEAN_LINT_DEPS) 84dcda19f5SSusan Scheufele 85dcda19f5SSusan Scheufeleinstall: $(INSTALL_DEPS) 86dcda19f5SSusan Scheufele 87dcda19f5SSusan Scheufele# 88dcda19f5SSusan Scheufele# Include common targets. 89dcda19f5SSusan Scheufele# 90dcda19f5SSusan Scheufeleinclude $(UTSBASE)/intel/Makefile.targ 91