11e1ddd6cScth# 21e1ddd6cScth# CDDL HEADER START 31e1ddd6cScth# 41e1ddd6cScth# The contents of this file are subject to the terms of the 51e1ddd6cScth# Common Development and Distribution License (the "License"). 61e1ddd6cScth# You may not use this file except in compliance with the License. 71e1ddd6cScth# 81e1ddd6cScth# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91e1ddd6cScth# or http://www.opensolaris.org/os/licensing. 101e1ddd6cScth# See the License for the specific language governing permissions 111e1ddd6cScth# and limitations under the License. 121e1ddd6cScth# 131e1ddd6cScth# When distributing Covered Code, include this CDDL HEADER in each 141e1ddd6cScth# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151e1ddd6cScth# If applicable, add the following below this CDDL HEADER, with the 161e1ddd6cScth# fields enclosed by brackets "[]" replaced with your own identifying 171e1ddd6cScth# information: Portions Copyright [yyyy] [name of copyright owner] 181e1ddd6cScth# 191e1ddd6cScth# CDDL HEADER END 201e1ddd6cScth# 211e1ddd6cScth 221e1ddd6cScth# 231e1ddd6cScth# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 241e1ddd6cScth# Use is subject to license terms. 251e1ddd6cScth# 261e1ddd6cScth 271e1ddd6cScth# 281e1ddd6cScth# This makefile drives the production of SCSI vHCI Driver 291e1ddd6cScth# sparc architecture dependent 301e1ddd6cScth# 311e1ddd6cScth 321e1ddd6cScth# 331e1ddd6cScth# Paths to the base of the uts directory trees 341e1ddd6cScth# 351e1ddd6cScthUTSBASE = ../.. 361e1ddd6cScth 371e1ddd6cScth# 381e1ddd6cScth# Define the module and object file sets. 391e1ddd6cScth# 401e1ddd6cScthMODULE = scsi_vhci 411e1ddd6cScthOBJECTS = $(SCSI_VHCI_OBJS:%=$(OBJS_DIR)/%) 421e1ddd6cScthLINTS = $(SCSI_VHCI_OBJS:%.o=$(LINTS_DIR)/%.ln) 431e1ddd6cScthROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 441e1ddd6cScthCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/scsi_vhci 451e1ddd6cScth 461e1ddd6cScth# 471e1ddd6cScth# Include common rules. 481e1ddd6cScth# 491e1ddd6cScthinclude $(UTSBASE)/sparc/Makefile.sparc 501e1ddd6cScth 51*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 52*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 53*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 54*7014882cSRichard Lowe 551e1ddd6cScth# 561e1ddd6cScth# Define targets. 571e1ddd6cScth# 581e1ddd6cScthALL_TARGET = $(BINARY) $(SRC_CONFILE) 591e1ddd6cScthLINT_TARGET = $(MODULE).lint 601e1ddd6cScthINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 611e1ddd6cScth 621e1ddd6cScth# 631e1ddd6cScth# Note dependancy on misc/scsi. 641e1ddd6cScth# 651e1ddd6cScthLDFLAGS += -dy -N"misc/scsi" 661e1ddd6cScth 671e1ddd6cScth# 681e1ddd6cScth# Default build targets. 691e1ddd6cScth# 701e1ddd6cScth.KEEP_STATE: 711e1ddd6cScth 721e1ddd6cScthdef: $(DEF_DEPS) 731e1ddd6cScth 741e1ddd6cScthall: $(ALL_DEPS) 751e1ddd6cScth 761e1ddd6cScthclean: $(CLEAN_DEPS) 771e1ddd6cScth 781e1ddd6cScthclobber: $(CLOBBER_DEPS) 791e1ddd6cScth 801e1ddd6cScthlint: $(LINT_DEPS) 811e1ddd6cScth 821e1ddd6cScthmodlintlib: $(MODLINTLIB_DEPS) 831e1ddd6cScth 841e1ddd6cScthclean.lint: $(CLEAN_LINT_DEPS) 851e1ddd6cScth 861e1ddd6cScthinstall: $(INSTALL_DEPS) 871e1ddd6cScth 881e1ddd6cScth# 891e1ddd6cScth# Include common targets. 901e1ddd6cScth# 911e1ddd6cScthinclude $(UTSBASE)/sparc/Makefile.targ 92