14c06356bSdh142964# CDDL HEADER START 24c06356bSdh142964# 34c06356bSdh142964# The contents of this file are subject to the terms of the 44c06356bSdh142964# Common Development and Distribution License (the "License"). 54c06356bSdh142964# You may not use this file except in compliance with the License. 64c06356bSdh142964# 74c06356bSdh142964# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 84c06356bSdh142964# or http://www.opensolaris.org/os/licensing. 94c06356bSdh142964# See the License for the specific language governing permissions 104c06356bSdh142964# and limitations under the License. 114c06356bSdh142964# 124c06356bSdh142964# When distributing Covered Code, include this CDDL HEADER in each 134c06356bSdh142964# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 144c06356bSdh142964# If applicable, add the following below this CDDL HEADER, with the 154c06356bSdh142964# fields enclosed by brackets "[]" replaced with your own identifying 164c06356bSdh142964# information: Portions Copyright [yyyy] [name of copyright owner] 174c06356bSdh142964# 184c06356bSdh142964# CDDL HEADER END 194c06356bSdh142964# 204c06356bSdh142964# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 214c06356bSdh142964# Use is subject to license terms. 224c06356bSdh142964# 23b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 244c06356bSdh142964 254c06356bSdh142964# 264c06356bSdh142964# Paths to the base of the uts directory trees 274c06356bSdh142964# 28*d363b1b0SRichard LoweUTSBASE = ../.. 294c06356bSdh142964 304c06356bSdh142964# 314c06356bSdh142964# Define the module and object file sets. 324c06356bSdh142964# 334c06356bSdh142964MODULE = pmcs 344c06356bSdh142964OBJECTS = $(PMCS_OBJS:%=$(OBJS_DIR)/%) 354c06356bSdh142964ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 364c06356bSdh142964CONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/pmcs 374c06356bSdh142964 384c06356bSdh142964# 394c06356bSdh142964# Kernel Module Dependencies 404c06356bSdh142964# 4182d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 424c06356bSdh142964 434c06356bSdh142964# 444c06356bSdh142964# Define targets 454c06356bSdh142964# 464c06356bSdh142964ALL_TARGET = $(BINARY) $(CONFMOD) 474c06356bSdh142964INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 484c06356bSdh142964 494c06356bSdh142964# 504c06356bSdh142964# Include common rules. 514c06356bSdh142964# 524c06356bSdh142964include $(UTSBASE)/intel/Makefile.intel 534c06356bSdh142964include $(CONF_SRCDIR)/pmcs8001fw.version 544c06356bSdh142964 554c06356bSdh142964# 564c06356bSdh142964# Add additional flags 574c06356bSdh142964# 584c06356bSdh142964PMCS_DRV_FLGS = -DMODNAME=\"${MODULE}\" 594c06356bSdh142964CPPFLAGS += $(PMCS_DRV_FLGS) \ 604c06356bSdh142964 -DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \ 614c06356bSdh142964 -DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\" 624c06356bSdh142964 637014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 64d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 667014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 687014882cSRichard Lowe 69b6b206fcSJohn Levon# needs work 70b6b206fcSJohn LevonSMATCH=off 714c06356bSdh142964 724c06356bSdh142964# 734c06356bSdh142964# Default build targets. 744c06356bSdh142964# 754c06356bSdh142964.KEEP_STATE: 764c06356bSdh142964 7747b47c8cSdh142964all: $(ALL_DEPS) 784c06356bSdh142964 794c06356bSdh142964def: $(DEF_DEPS) 804c06356bSdh142964 814c06356bSdh142964clean: $(CLEAN_DEPS) 824c06356bSdh142964 834c06356bSdh142964clobber: $(CLOBBER_DEPS) 844c06356bSdh142964 8547b47c8cSdh142964install: $(INSTALL_DEPS) 864c06356bSdh142964 874c06356bSdh142964# 884c06356bSdh142964# Include common targets. 894c06356bSdh142964# 904c06356bSdh142964include $(UTSBASE)/intel/Makefile.targ 91