xref: /illumos-gate/usr/src/uts/intel/arcmsr/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
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#
24*b6b206fcSJohn 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. McPhersonLINTS		= $(ARCMSR_OBJS:%.o=$(LINTS_DIR)/%.ln)
37508aff1aSJames C. McPhersonROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
38508aff1aSJames C. McPhersonCONF_SRCDIR	= $(UTSBASE)/intel/io/scsi/adapters/arcmsr
39508aff1aSJames C. McPherson
40508aff1aSJames C. McPherson#
41508aff1aSJames C. McPherson# Include common rules.
42508aff1aSJames C. McPherson#
43508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.intel
44508aff1aSJames C. McPherson
457014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
467014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
477014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
487014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
497014882cSRichard Lowe
50*b6b206fcSJohn Levon# needs work
51*b6b206fcSJohn Levon$(OBJS_DIR)/arcmsr.o := SMOFF += deref_check
52*b6b206fcSJohn Levon
53508aff1aSJames C. McPherson#
54508aff1aSJames C. McPherson# Define targets.
55508aff1aSJames C. McPherson#
56508aff1aSJames C. McPhersonALL_TARGET	= $(BINARY) $(CONFMOD)
57508aff1aSJames C. McPhersonLINT_TARGET	= $(MODULE).lint
58508aff1aSJames C. McPhersonINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59508aff1aSJames C. McPherson
60508aff1aSJames C. McPherson#
61508aff1aSJames C. McPherson# Note dependancy on misc/scsi.
62508aff1aSJames C. McPherson#
63508aff1aSJames C. McPhersonLDFLAGS += -dy -N"misc/scsi"
647014882cSRichard Lowe
65508aff1aSJames C. McPherson#
66508aff1aSJames C. McPherson# Default build targets.
67508aff1aSJames C. McPherson#
68508aff1aSJames C. McPherson.KEEP_STATE:
69508aff1aSJames C. McPherson
70508aff1aSJames C. McPhersondef:		$(DEF_DEPS)
71508aff1aSJames C. McPherson
72508aff1aSJames C. McPhersonall:		$(ALL_DEPS)
73508aff1aSJames C. McPherson
74508aff1aSJames C. McPhersonclean:		$(CLEAN_DEPS)
75508aff1aSJames C. McPherson
76508aff1aSJames C. McPhersonclobber:	$(CLOBBER_DEPS)
77508aff1aSJames C. McPherson
78508aff1aSJames C. McPhersonlint:		$(LINT_DEPS)
79508aff1aSJames C. McPherson
80508aff1aSJames C. McPhersonmodlintlib:	$(MODLINTLIB_DEPS)
81508aff1aSJames C. McPherson
82508aff1aSJames C. McPhersonclean.lint:	$(CLEAN_LINT_DEPS)
83508aff1aSJames C. McPherson
84508aff1aSJames C. McPhersoninstall:	$(INSTALL_DEPS)
85508aff1aSJames C. McPherson
86508aff1aSJames C. McPherson#
87508aff1aSJames C. McPherson# Include common targets.
88508aff1aSJames C. McPherson#
89508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.targ
90