xref: /illumos-gate/usr/src/uts/intel/mr_sas/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1dcda19f5SSusan Scheufele#
2dcda19f5SSusan Scheufele# CDDL HEADER START
3dcda19f5SSusan Scheufele#
4dcda19f5SSusan Scheufele# The contents of this file are subject to the terms of the
5dcda19f5SSusan Scheufele# Common Development and Distribution License (the "License").
6dcda19f5SSusan Scheufele# You may not use this file except in compliance with the License.
7dcda19f5SSusan Scheufele#
8dcda19f5SSusan Scheufele# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9dcda19f5SSusan Scheufele# or http://www.opensolaris.org/os/licensing.
10dcda19f5SSusan Scheufele# See the License for the specific language governing permissions
11dcda19f5SSusan Scheufele# and limitations under the License.
12dcda19f5SSusan Scheufele#
13dcda19f5SSusan Scheufele# When distributing Covered Code, include this CDDL HEADER in each
14dcda19f5SSusan Scheufele# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15dcda19f5SSusan Scheufele# If applicable, add the following below this CDDL HEADER, with the
16dcda19f5SSusan Scheufele# fields enclosed by brackets "[]" replaced with your own identifying
17dcda19f5SSusan Scheufele# information: Portions Copyright [yyyy] [name of copyright owner]
18dcda19f5SSusan Scheufele#
19dcda19f5SSusan Scheufele# CDDL HEADER END
20dcda19f5SSusan Scheufele#
21dcda19f5SSusan Scheufele# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22dcda19f5SSusan Scheufele# Use is subject to license terms.
23dcda19f5SSusan Scheufele#
24dcda19f5SSusan Scheufele# uts/intel/mr_sas/Makefile
25dcda19f5SSusan Scheufele#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
27dcda19f5SSusan Scheufele
28dcda19f5SSusan Scheufele#
29dcda19f5SSusan Scheufele#	Path to the base of the uts directory tree (usually /usr/src/uts).
30dcda19f5SSusan Scheufele#
31dcda19f5SSusan ScheufeleUTSBASE	= ../..
32dcda19f5SSusan Scheufele
33dcda19f5SSusan Scheufele#
34dcda19f5SSusan Scheufele#	Define the module and object file sets.
35dcda19f5SSusan Scheufele#
36dcda19f5SSusan ScheufeleMODULE		= mr_sas
37dcda19f5SSusan ScheufeleOBJECTS		= $(MR_SAS_OBJS:%=$(OBJS_DIR)/%)
38dcda19f5SSusan ScheufeleROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
39dcda19f5SSusan ScheufeleCONF_SRCDIR     = $(UTSBASE)/common/io/mr_sas
40dcda19f5SSusan Scheufele
41dcda19f5SSusan Scheufele#
42dcda19f5SSusan Scheufele#	Include common rules.
43dcda19f5SSusan Scheufele#
44dcda19f5SSusan Scheufeleinclude $(UTSBASE)/intel/Makefile.intel
45dcda19f5SSusan Scheufele
46dcda19f5SSusan Scheufele#
47dcda19f5SSusan Scheufele#	Define targets
48dcda19f5SSusan Scheufele#
49dcda19f5SSusan ScheufeleALL_TARGET	= $(BINARY) $(CONFMOD)
50dcda19f5SSusan ScheufeleINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51dcda19f5SSusan Scheufele
52dcda19f5SSusan Scheufele#
53dcda19f5SSusan Scheufele#	Kernel Module Dependencies
54dcda19f5SSusan Scheufele#
55*82d0151aSRichard LoweLDFLAGS		+= -Nmisc/scsi
56dcda19f5SSusan Scheufele
577014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
59d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
607014882cSRichard Lowe
61b6b206fcSJohn Levon# needs work
62b6b206fcSJohn LevonSMATCH=off
63b6b206fcSJohn Levon
64dcda19f5SSusan Scheufele#
65dcda19f5SSusan Scheufele#	Default build targets.
66dcda19f5SSusan Scheufele#
67dcda19f5SSusan Scheufele.KEEP_STATE:
68dcda19f5SSusan Scheufele
69dcda19f5SSusan Scheufeledef:		$(DEF_DEPS)
70dcda19f5SSusan Scheufele
71dcda19f5SSusan Scheufeleall:		$(ALL_DEPS)
72dcda19f5SSusan Scheufele
73dcda19f5SSusan Scheufeleclean:		$(CLEAN_DEPS)
74dcda19f5SSusan Scheufele
75dcda19f5SSusan Scheufeleclobber:	$(CLOBBER_DEPS)
76dcda19f5SSusan Scheufele
77dcda19f5SSusan Scheufeleinstall:	$(INSTALL_DEPS)
78dcda19f5SSusan Scheufele
79dcda19f5SSusan Scheufele#
80dcda19f5SSusan Scheufele#	Include common targets.
81dcda19f5SSusan Scheufele#
82dcda19f5SSusan Scheufeleinclude $(UTSBASE)/intel/Makefile.targ
83