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# 26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 271e1ddd6cScth 281e1ddd6cScth# 291e1ddd6cScth# This makefile drives the production of SCSI vHCI Driver 301e1ddd6cScth# intel architecture dependent 311e1ddd6cScth# 321e1ddd6cScth 331e1ddd6cScth# 341e1ddd6cScth# Paths to the base of the uts directory trees 351e1ddd6cScth# 361e1ddd6cScthUTSBASE = ../.. 371e1ddd6cScth 381e1ddd6cScth# 391e1ddd6cScth# Define the module and object file sets. 401e1ddd6cScth# 411e1ddd6cScthMODULE = scsi_vhci 421e1ddd6cScthOBJECTS = $(SCSI_VHCI_OBJS:%=$(OBJS_DIR)/%) 431e1ddd6cScthROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 441e1ddd6cScthCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/scsi_vhci 451e1ddd6cScth 461e1ddd6cScth# 471e1ddd6cScth# Include common rules. 481e1ddd6cScth# 491e1ddd6cScthinclude $(UTSBASE)/intel/Makefile.intel 501e1ddd6cScth 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 52d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 537014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 547014882cSRichard Lowe 55b6b206fcSJohn Levon# needs work 56b6b206fcSJohn LevonSMATCH=off 57b6b206fcSJohn Levon 581e1ddd6cScth# 591e1ddd6cScth# Define targets. 601e1ddd6cScth# 611e1ddd6cScthALL_TARGET = $(BINARY) $(SRC_CONFILE) 621e1ddd6cScthINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 631e1ddd6cScth 641e1ddd6cScth# 651e1ddd6cScth# Note dependancy on misc/scsi. 661e1ddd6cScth# 67*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 681e1ddd6cScth 691e1ddd6cScth# 701e1ddd6cScth# Default build targets. 711e1ddd6cScth# 721e1ddd6cScth.KEEP_STATE: 731e1ddd6cScth 741e1ddd6cScthdef: $(DEF_DEPS) 751e1ddd6cScth 761e1ddd6cScthall: $(ALL_DEPS) 771e1ddd6cScth 781e1ddd6cScthclean: $(CLEAN_DEPS) 791e1ddd6cScth 801e1ddd6cScthclobber: $(CLOBBER_DEPS) 811e1ddd6cScth 821e1ddd6cScthinstall: $(INSTALL_DEPS) 831e1ddd6cScth 841e1ddd6cScth# 851e1ddd6cScth# Include common targets. 861e1ddd6cScth# 871e1ddd6cScthinclude $(UTSBASE)/intel/Makefile.targ 88