1ae115bc7Smrj# 2ae115bc7Smrj# CDDL HEADER START 3ae115bc7Smrj# 4ae115bc7Smrj# The contents of this file are subject to the terms of the 5ae115bc7Smrj# Common Development and Distribution License (the "License"). 6ae115bc7Smrj# You may not use this file except in compliance with the License. 7ae115bc7Smrj# 8ae115bc7Smrj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9ae115bc7Smrj# or http://www.opensolaris.org/os/licensing. 10ae115bc7Smrj# See the License for the specific language governing permissions 11ae115bc7Smrj# and limitations under the License. 12ae115bc7Smrj# 13ae115bc7Smrj# When distributing Covered Code, include this CDDL HEADER in each 14ae115bc7Smrj# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15ae115bc7Smrj# If applicable, add the following below this CDDL HEADER, with the 16ae115bc7Smrj# fields enclosed by brackets "[]" replaced with your own identifying 17ae115bc7Smrj# information: Portions Copyright [yyyy] [name of copyright owner] 18ae115bc7Smrj# 19ae115bc7Smrj# CDDL HEADER END 20ae115bc7Smrj# 21ae115bc7Smrj# uts/intel/ata/Makefile 22ae115bc7Smrj# 23f304523cSzhongyan gu - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24ae115bc7Smrj# Use is subject to license terms. 2589b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 26ae115bc7Smrj# 27ae115bc7Smrj# 28ae115bc7Smrj# This makefile drives the production of the ata "drv" 29ae115bc7Smrj# kernel module. 30ae115bc7Smrj# 31ae115bc7Smrj# intel architecture dependent 32ae115bc7Smrj# 33ae115bc7Smrj 34ae115bc7Smrj# 35ae115bc7Smrj# Path to the base of the uts directory tree (usually /usr/src/uts). 36ae115bc7Smrj# 37ae115bc7SmrjUTSBASE = ../.. 38ae115bc7Smrj 39ae115bc7Smrj# 40ae115bc7Smrj# Define the module and object file sets. 41ae115bc7Smrj# 42ae115bc7SmrjMODULE = ata 43ae115bc7SmrjOBJECTS = $(ATA_OBJS:%=$(OBJS_DIR)/%) 44ae115bc7SmrjROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45ae115bc7SmrjCONF_SRCDIR = $(UTSBASE)/intel/io/dktp/controller/ata 46ae115bc7Smrj 47ae115bc7Smrj# 48ae115bc7Smrj# Include common rules. 49ae115bc7Smrj# 50ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel 51ae115bc7Smrj 52ae115bc7Smrj# 53ae115bc7Smrj# Define targets 54ae115bc7Smrj# 55ae115bc7SmrjALL_TARGET = $(BINARY) $(CONFMOD) 56ae115bc7SmrjINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 57ae115bc7Smrj 58ae115bc7Smrj# 59ae115bc7Smrj# Overrides. 60ae115bc7Smrj# 61ae115bc7Smrj#DEBUG_FLGS = -DATA_DEBUG -DGHD_DEBUG -DDEBUG 62ae115bc7SmrjDEBUG_FLGS = 63ae115bc7SmrjDEBUG_DEFS += $(DEBUG_FLGS) 64ae115bc7SmrjINC_PATH += -I$(UTSBASE)/intel/io/dktp/hba/ghd 65ae115bc7Smrj 66ae115bc7Smrj# 670aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 680aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 69ae115bc7Smrj# Please do not carry these forward to new Makefiles. 70ae115bc7Smrj# 71ae115bc7Smrj 727014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 73d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 747014882cSRichard Lowe 75ae115bc7Smrj# 7689b43686SBayard Bell# Depends on scsi 7789b43686SBayard Bell# 78*82d0151aSRichard LoweLDFLAGS += -N misc/scsi 7989b43686SBayard Bell 8089b43686SBayard Bell# 81ae115bc7Smrj# Default build targets. 82ae115bc7Smrj# 83ae115bc7Smrj.KEEP_STATE: 84ae115bc7Smrj 85ae115bc7Smrjdef: $(DEF_DEPS) 86ae115bc7Smrj 87ae115bc7Smrjall: $(ALL_DEPS) 88ae115bc7Smrj 89ae115bc7Smrjclean: $(CLEAN_DEPS) 90ae115bc7Smrj 91ae115bc7Smrjclobber: $(CLOBBER_DEPS) 92ae115bc7Smrj 93ae115bc7Smrjinstall: $(INSTALL_DEPS) 94ae115bc7Smrj 95ae115bc7Smrj# 96ae115bc7Smrj# Include common targets. 97ae115bc7Smrj# 98ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ 99