1# CDDL HEADER START 2# 3# The contents of this file are subject to the terms of the 4# Common Development and Distribution License (the "License"). 5# You may not use this file except in compliance with the License. 6# 7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8# or http://www.opensolaris.org/os/licensing. 9# See the License for the specific language governing permissions 10# and limitations under the License. 11# 12# When distributing Covered Code, include this CDDL HEADER in each 13# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14# If applicable, add the following below this CDDL HEADER, with the 15# fields enclosed by brackets "[]" replaced with your own identifying 16# information: Portions Copyright [yyyy] [name of copyright owner] 17# 18# CDDL HEADER END 19# 20# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 21# Use is subject to license terms. 22# 23# Copyright (c) 2018, Joyent, Inc. 24 25# 26# Paths to the base of the uts directory trees 27# 28UTSBASE = ../../../../src/uts 29 30# 31# Define the module and object file sets. 32# 33MODULE = pmcs 34OBJECTS = $(PMCS_OBJS:%=$(OBJS_DIR)/%) 35ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 36CONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/pmcs 37 38# 39# Kernel Module Dependencies 40# 41LDFLAGS += -dy -Nmisc/scsi 42 43# 44# Define targets 45# 46ALL_TARGET = $(BINARY) $(CONFMOD) 47INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 48 49# 50# Include common rules. 51# 52include $(UTSBASE)/intel/Makefile.intel 53include $(CONF_SRCDIR)/pmcs8001fw.version 54 55# 56# Add additional flags 57# 58PMCS_DRV_FLGS = -DMODNAME=\"${MODULE}\" 59CPPFLAGS += $(PMCS_DRV_FLGS) \ 60 -DPMCS_FIRMWARE_VERSION=${PMCS_FW_VERSION} \ 61 -DPMCS_FIRMWARE_VERSION_STRING=\"${PMCS_FW_VERSION_STRING}\" 62 63CERRWARN += -_gcc=-Wno-switch 64CERRWARN += $(CNOWARN_UNINIT) 65CERRWARN += -_gcc=-Wno-unused-value 66CERRWARN += -_gcc=-Wno-unused-label 67CERRWARN += -_gcc=-Wno-parentheses 68 69# needs work 70SMATCH=off 71 72# 73# Default build targets. 74# 75.KEEP_STATE: 76 77all: $(ALL_DEPS) 78 79def: $(DEF_DEPS) 80 81clean: $(CLEAN_DEPS) 82 83clobber: $(CLOBBER_DEPS) 84 85install: $(INSTALL_DEPS) 86 87# 88# Include common targets. 89# 90include $(UTSBASE)/intel/Makefile.targ 91