166f9d5cbSmlf# 266f9d5cbSmlf# CDDL HEADER START 366f9d5cbSmlf# 466f9d5cbSmlf# The contents of this file are subject to the terms of the 566f9d5cbSmlf# Common Development and Distribution License (the "License"). 666f9d5cbSmlf# You may not use this file except in compliance with the License. 766f9d5cbSmlf# 866f9d5cbSmlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 966f9d5cbSmlf# or http://www.opensolaris.org/os/licensing. 1066f9d5cbSmlf# See the License for the specific language governing permissions 1166f9d5cbSmlf# and limitations under the License. 1266f9d5cbSmlf# 1366f9d5cbSmlf# When distributing Covered Code, include this CDDL HEADER in each 1466f9d5cbSmlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1566f9d5cbSmlf# If applicable, add the following below this CDDL HEADER, with the 1666f9d5cbSmlf# fields enclosed by brackets "[]" replaced with your own identifying 1766f9d5cbSmlf# information: Portions Copyright [yyyy] [name of copyright owner] 1866f9d5cbSmlf# 1966f9d5cbSmlf# CDDL HEADER END 2066f9d5cbSmlf# 2166f9d5cbSmlf 2266f9d5cbSmlf# 23bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2466f9d5cbSmlf# Use is subject to license terms. 2566f9d5cbSmlf# 2666f9d5cbSmlf 2766f9d5cbSmlf# 2866f9d5cbSmlf# uts/intel/io/sata/Makefile 2966f9d5cbSmlf# 3066f9d5cbSmlf# This makefile drives the production of the sata "misc" 3166f9d5cbSmlf# kernel module. 3266f9d5cbSmlf# 3366f9d5cbSmlf# intel architecture dependent 3466f9d5cbSmlf# 3566f9d5cbSmlf 3666f9d5cbSmlf# 3766f9d5cbSmlf# Path to the base of the uts directory tree (usually /usr/src/uts). 3866f9d5cbSmlf# 3966f9d5cbSmlfUTSBASE = ../.. 4066f9d5cbSmlf 4166f9d5cbSmlf# 4266f9d5cbSmlf# Define the module and object file sets. 4366f9d5cbSmlf# 4466f9d5cbSmlfMODULE = sata 4566f9d5cbSmlfOBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%) 4666f9d5cbSmlfLINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln) 4766f9d5cbSmlfROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 484ebb14b2SfritsWARLOCK_OUT = $(SATA_OBJS:%.o=%.ll) 494ebb14b2SfritsWARLOCK_OK = $(MODULE).ok 5066f9d5cbSmlf 5166f9d5cbSmlf# 5266f9d5cbSmlf# Include common rules. 5366f9d5cbSmlf# 5466f9d5cbSmlfinclude $(UTSBASE)/intel/Makefile.intel 5566f9d5cbSmlf 5666f9d5cbSmlf# 5766f9d5cbSmlf# Define targets 5866f9d5cbSmlf# 5966f9d5cbSmlfALL_TARGET = $(BINARY) 6066f9d5cbSmlfLINT_TARGET = $(MODULE).lint 6166f9d5cbSmlfINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 6266f9d5cbSmlf 6366f9d5cbSmlf# 6466f9d5cbSmlf# Overrides. 6566f9d5cbSmlf# 6666f9d5cbSmlfDEBUG_FLGS = 6766f9d5cbSmlfDEBUG_DEFS += $(DEBUG_FLGS) 6866f9d5cbSmlf 6966f9d5cbSmlf# 7066f9d5cbSmlf# lint pass one enforcement 7166f9d5cbSmlf# 7266f9d5cbSmlfCFLAGS += $(CCVERBOSE) 7366f9d5cbSmlf 7466f9d5cbSmlf# 7566f9d5cbSmlf# dependency on scsi module 7666f9d5cbSmlf# 7766f9d5cbSmlfLDFLAGS += -dy -Nmisc/scsi 7866f9d5cbSmlf 7966f9d5cbSmlf# 80bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 81bb25c06cSjg# to investigate and remove these for maximum lint coverage. 82bb25c06cSjg# Please do not carry these forward to new Makefiles. 83bb25c06cSjg# 84bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 85bb25c06cSjgLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW 86bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 87bb25c06cSjgLINTTAGS += -erroff=E_STATIC_UNUSED 88bb25c06cSjg 89*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 90*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 91*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-function 92*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 93*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 94*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-empty-body 95*7014882cSRichard Lowe 96bb25c06cSjg# 9766f9d5cbSmlf# Default build targets. 9866f9d5cbSmlf# 9966f9d5cbSmlf.KEEP_STATE: 10066f9d5cbSmlf 10166f9d5cbSmlfdef: $(DEF_DEPS) 10266f9d5cbSmlf 10366f9d5cbSmlfall: $(ALL_DEPS) 10466f9d5cbSmlf 10566f9d5cbSmlfclean: $(CLEAN_DEPS) 1064ebb14b2Sfrits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 10766f9d5cbSmlf 10866f9d5cbSmlfclobber: $(CLOBBER_DEPS) 1094ebb14b2Sfrits $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 11066f9d5cbSmlf 11166f9d5cbSmlflint: $(LINT_DEPS) 11266f9d5cbSmlf 11366f9d5cbSmlfmodlintlib: $(MODLINTLIB_DEPS) 11466f9d5cbSmlf 11566f9d5cbSmlfclean.lint: $(CLEAN_LINT_DEPS) 11666f9d5cbSmlf 11766f9d5cbSmlfinstall: $(INSTALL_DEPS) 11866f9d5cbSmlf 11966f9d5cbSmlf# 12066f9d5cbSmlf# Include common targets. 12166f9d5cbSmlf# 12266f9d5cbSmlfinclude $(UTSBASE)/intel/Makefile.targ 1234ebb14b2Sfrits 1244ebb14b2Sfrits# 1254ebb14b2Sfrits# Defines for local commands. 1264ebb14b2Sfrits# 1274ebb14b2SfritsWLCC = wlcc 1284ebb14b2SfritsTOUCH = touch 1294ebb14b2SfritsWARLOCK = warlock 1304ebb14b2Sfrits 1314ebb14b2Sfrits# 1324ebb14b2Sfrits# Warlock targets 1334ebb14b2Sfrits# 1344ebb14b2Sfritswarlock: $(WARLOCK_OK) 1354ebb14b2Sfrits 1364ebb14b2Sfrits$(WARLOCK_OK): $(WARLOCK_OUT) 1374ebb14b2Sfrits $(TOUCH) $@ 1384ebb14b2Sfrits 1394ebb14b2Sfrits%.ll: $(UTSBASE)/common/io/sata/impl/%.c 1404ebb14b2Sfrits $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $< 141