166f9d5cbSmlf# CDDL HEADER START 266f9d5cbSmlf# 366f9d5cbSmlf# The contents of this file are subject to the terms of the 466f9d5cbSmlf# Common Development and Distribution License (the "License"). 566f9d5cbSmlf# You may not use this file except in compliance with the License. 666f9d5cbSmlf# 766f9d5cbSmlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 866f9d5cbSmlf# or http://www.opensolaris.org/os/licensing. 966f9d5cbSmlf# See the License for the specific language governing permissions 1066f9d5cbSmlf# and limitations under the License. 1166f9d5cbSmlf# 1266f9d5cbSmlf# When distributing Covered Code, include this CDDL HEADER in each 1366f9d5cbSmlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1466f9d5cbSmlf# If applicable, add the following below this CDDL HEADER, with the 1566f9d5cbSmlf# fields enclosed by brackets "[]" replaced with your own identifying 1666f9d5cbSmlf# information: Portions Copyright [yyyy] [name of copyright owner] 1766f9d5cbSmlf# 1866f9d5cbSmlf# CDDL HEADER END 1966f9d5cbSmlf# 2066f9d5cbSmlf 2166f9d5cbSmlf# 224e942d8cSshidokht# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2366f9d5cbSmlf# Use is subject to license terms. 2466f9d5cbSmlf# 2566f9d5cbSmlf 2666f9d5cbSmlf# 2766f9d5cbSmlf# uts/sparc/si3124/Makefile 2866f9d5cbSmlf# 2966f9d5cbSmlf# This makefile drives the production of the 3066f9d5cbSmlf# "platform/i86pc/kernel/drv/si3124" kernel module. 3166f9d5cbSmlf# 3266f9d5cbSmlf# sparc architecture dependent 3366f9d5cbSmlf# 3466f9d5cbSmlf 3566f9d5cbSmlf# 3666f9d5cbSmlf# Path to the base of the uts directory tree (usually /usr/src/uts). 3766f9d5cbSmlf# 3866f9d5cbSmlfUTSBASE = ../.. 3966f9d5cbSmlf 4066f9d5cbSmlf# 4166f9d5cbSmlf# Define the module and object file sets. 4266f9d5cbSmlf# 4366f9d5cbSmlfMODULE = si3124 4466f9d5cbSmlfOBJECTS = $(SI3124_OBJS:%=$(OBJS_DIR)/%) 4566f9d5cbSmlfLINTS = $(SI3124_OBJS:%.o=$(LINTS_DIR)/%.ln) 4666f9d5cbSmlfWARLOCK_OUT = $(SI3124_OBJS:%.o=%.ll) 4766f9d5cbSmlfWARLOCK_OK = $(MODULE).ok 4866f9d5cbSmlfROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4966f9d5cbSmlfCONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/si3124 504ebb14b2SfritsWLCMD_DIR = $(UTSBASE)/common/io/warlock 5166f9d5cbSmlf 5266f9d5cbSmlf# 5366f9d5cbSmlf# Include common rules. 5466f9d5cbSmlf# 5566f9d5cbSmlfinclude $(UTSBASE)/sparc/Makefile.sparc 5666f9d5cbSmlf 5766f9d5cbSmlf# 5866f9d5cbSmlf# Define targets 5966f9d5cbSmlf# 6066f9d5cbSmlfALL_TARGET = $(BINARY) 6166f9d5cbSmlfLINT_TARGET = $(MODULE).lint 6266f9d5cbSmlfINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 6366f9d5cbSmlf 6466f9d5cbSmlf# 6566f9d5cbSmlf# Overrides. 6666f9d5cbSmlf# 6766f9d5cbSmlfDEBUG_FLGS = 6866f9d5cbSmlfDEBUG_DEFS += $(DEBUG_FLGS) 6966f9d5cbSmlf 70*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 71*7014882cSRichard Lowe 7266f9d5cbSmlf# 7366f9d5cbSmlf# lint pass one enforcement 7466f9d5cbSmlf# 7566f9d5cbSmlfCFLAGS += $(CCVERBOSE) 7666f9d5cbSmlf 7766f9d5cbSmlf# 7866f9d5cbSmlf# Default build targets. 7966f9d5cbSmlf# 8066f9d5cbSmlf.KEEP_STATE: 8166f9d5cbSmlf 8266f9d5cbSmlfdef: $(DEF_DEPS) 8366f9d5cbSmlf 8466f9d5cbSmlfall: $(ALL_DEPS) 8566f9d5cbSmlf 864ebb14b2Sfritsclean: $(CLEAN_DEPS) 8766f9d5cbSmlf $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 8866f9d5cbSmlf 894ebb14b2Sfritsclobber: $(CLOBBER_DEPS) 9066f9d5cbSmlf $(RM) $(WARLOCK_OUT) $(WARLOCK_OK) 9166f9d5cbSmlf 9266f9d5cbSmlflint: $(LINT_DEPS) 9366f9d5cbSmlf 9466f9d5cbSmlfmodlintlib: $(MODLINTLIB_DEPS) 9566f9d5cbSmlf 9666f9d5cbSmlfclean.lint: $(CLEAN_LINT_DEPS) 9766f9d5cbSmlf 9866f9d5cbSmlfinstall: $(INSTALL_DEPS) 9966f9d5cbSmlf 10066f9d5cbSmlf# 10166f9d5cbSmlf# Include common targets. 10266f9d5cbSmlf# 10366f9d5cbSmlfinclude $(UTSBASE)/sparc/Makefile.targ 10466f9d5cbSmlf 10566f9d5cbSmlf 10666f9d5cbSmlf# 10766f9d5cbSmlf# Defines for local commands. 10866f9d5cbSmlf# 10966f9d5cbSmlfWARLOCK = warlock 11066f9d5cbSmlfWLCC = wlcc 11166f9d5cbSmlfTOUCH = touch 11266f9d5cbSmlfTEST = test 11366f9d5cbSmlf 11466f9d5cbSmlfSD_FILES = $(SD_OBJS:%.o=../sd/%.ll) 11566f9d5cbSmlfSATA_FILES = $(SATA_OBJS:%.o=-l ../sata/%.ll) 11666f9d5cbSmlfSCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll) 1174e942d8cSshidokhtCMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll) 11866f9d5cbSmlf 1194ebb14b2Sfritswarlock: $(WARLOCK_OK) 12066f9d5cbSmlf 121bf56214cSstevel$(WARLOCK_OK): $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) warlock_ddi.files \ 1224e942d8cSshidokht sata.files scsi.files sd.files cmlb.files 1234ebb14b2Sfrits $(WARLOCK) -c $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) \ 12466f9d5cbSmlf $(SD_FILES) \ 12566f9d5cbSmlf $(SCSI_FILES) \ 1264e942d8cSshidokht $(CMLB_FILES) \ 12766f9d5cbSmlf $(SATA_FILES) \ 12866f9d5cbSmlf -l ../warlock/ddi_dki_impl.ll 12966f9d5cbSmlf $(TOUCH) $@ 13066f9d5cbSmlf 13166f9d5cbSmlf%.ll: $(UTSBASE)/common/io/sata/adapters/si3124/%.c 13266f9d5cbSmlf $(WLCC) $(CPPFLAGS) -D DEBUG -D __sparcv9 -o $@ $< 13366f9d5cbSmlf 13466f9d5cbSmlfsata.files: 13566f9d5cbSmlf @cd ../sata; pwd; $(MAKE) warlock 13666f9d5cbSmlf 13766f9d5cbSmlfscsi.files: 13866f9d5cbSmlf @cd ../scsi; pwd; $(MAKE) warlock 13966f9d5cbSmlf 14066f9d5cbSmlfsd.files: 14166f9d5cbSmlf @cd ../sd; pwd; $(MAKE) warlock_alone 14266f9d5cbSmlf 1434e942d8cSshidokhtcmlb.files: 1444e942d8cSshidokht @cd ../cmlb; pwd; $(MAKE) warlock 1454e942d8cSshidokht 14666f9d5cbSmlfwarlock_ddi.files: 14766f9d5cbSmlf @cd ../warlock; pwd; $(MAKE) warlock 148