1508aff1aSJames C. McPherson# 2508aff1aSJames C. McPherson# CDDL HEADER START 3508aff1aSJames C. McPherson# 4508aff1aSJames C. McPherson# The contents of this file are subject to the terms of the 5508aff1aSJames C. McPherson# Common Development and Distribution License (the "License"). 6508aff1aSJames C. McPherson# You may not use this file except in compliance with the License. 7508aff1aSJames C. McPherson# 8508aff1aSJames C. McPherson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9508aff1aSJames C. McPherson# or http://www.opensolaris.org/os/licensing. 10508aff1aSJames C. McPherson# See the License for the specific language governing permissions 11508aff1aSJames C. McPherson# and limitations under the License. 12508aff1aSJames C. McPherson# 13508aff1aSJames C. McPherson# When distributing Covered Code, include this CDDL HEADER in each 14508aff1aSJames C. McPherson# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15508aff1aSJames C. McPherson# If applicable, add the following below this CDDL HEADER, with the 16508aff1aSJames C. McPherson# fields enclosed by brackets "[]" replaced with your own identifying 17508aff1aSJames C. McPherson# information: Portions Copyright [yyyy] [name of copyright owner] 18508aff1aSJames C. McPherson# 19508aff1aSJames C. McPherson# CDDL HEADER END 20508aff1aSJames C. McPherson# 21508aff1aSJames C. McPherson# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22508aff1aSJames C. McPherson# Use is subject to license terms. 23508aff1aSJames C. McPherson# 24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 25508aff1aSJames C. McPherson 26508aff1aSJames C. McPherson# 27508aff1aSJames C. McPherson# Paths to the base of the uts directory trees 28508aff1aSJames C. McPherson# 296628d1d9SJames C. McPhersonUTSBASE = ../.. 30508aff1aSJames C. McPherson 31508aff1aSJames C. McPherson# 32508aff1aSJames C. McPherson# Define the module and object file sets. 33508aff1aSJames C. McPherson# 34508aff1aSJames C. McPhersonMODULE = arcmsr 35508aff1aSJames C. McPhersonOBJECTS = $(ARCMSR_OBJS:%=$(OBJS_DIR)/%) 36508aff1aSJames C. McPhersonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 37508aff1aSJames C. McPhersonCONF_SRCDIR = $(UTSBASE)/intel/io/scsi/adapters/arcmsr 38508aff1aSJames C. McPherson 39508aff1aSJames C. McPherson# 40508aff1aSJames C. McPherson# Include common rules. 41508aff1aSJames C. McPherson# 42508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.intel 43508aff1aSJames C. McPherson 447014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 457014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 467014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 47d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 487014882cSRichard Lowe 49b6b206fcSJohn Levon# needs work 50b6b206fcSJohn Levon$(OBJS_DIR)/arcmsr.o := SMOFF += deref_check 51b6b206fcSJohn Levon 52508aff1aSJames C. McPherson# 53508aff1aSJames C. McPherson# Define targets. 54508aff1aSJames C. McPherson# 55508aff1aSJames C. McPhersonALL_TARGET = $(BINARY) $(CONFMOD) 56508aff1aSJames C. McPhersonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 57508aff1aSJames C. McPherson 58508aff1aSJames C. McPherson# 59508aff1aSJames C. McPherson# Note dependancy on misc/scsi. 60508aff1aSJames C. McPherson# 61*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 627014882cSRichard Lowe 63508aff1aSJames C. McPherson# 64508aff1aSJames C. McPherson# Default build targets. 65508aff1aSJames C. McPherson# 66508aff1aSJames C. McPherson.KEEP_STATE: 67508aff1aSJames C. McPherson 68508aff1aSJames C. McPhersondef: $(DEF_DEPS) 69508aff1aSJames C. McPherson 70508aff1aSJames C. McPhersonall: $(ALL_DEPS) 71508aff1aSJames C. McPherson 72508aff1aSJames C. McPhersonclean: $(CLEAN_DEPS) 73508aff1aSJames C. McPherson 74508aff1aSJames C. McPhersonclobber: $(CLOBBER_DEPS) 75508aff1aSJames C. McPherson 76508aff1aSJames C. McPhersoninstall: $(INSTALL_DEPS) 77508aff1aSJames C. McPherson 78508aff1aSJames C. McPherson# 79508aff1aSJames C. McPherson# Include common targets. 80508aff1aSJames C. McPherson# 81508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.targ 82