xref: /illumos-gate/usr/src/uts/intel/iscsit/Makefile (revision 41e0a469c3dbc14deb2b200f6ca6f6e00b5865d0)
1a6d42e7dSPeter Dunlap#
2a6d42e7dSPeter Dunlap# CDDL HEADER START
3a6d42e7dSPeter Dunlap#
4a6d42e7dSPeter Dunlap# The contents of this file are subject to the terms of the
5a6d42e7dSPeter Dunlap# Common Development and Distribution License (the "License").
6a6d42e7dSPeter Dunlap# You may not use this file except in compliance with the License.
7a6d42e7dSPeter Dunlap#
8a6d42e7dSPeter Dunlap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9a6d42e7dSPeter Dunlap# or http://www.opensolaris.org/os/licensing.
10a6d42e7dSPeter Dunlap# See the License for the specific language governing permissions
11a6d42e7dSPeter Dunlap# and limitations under the License.
12a6d42e7dSPeter Dunlap#
13a6d42e7dSPeter Dunlap# When distributing Covered Code, include this CDDL HEADER in each
14a6d42e7dSPeter Dunlap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a6d42e7dSPeter Dunlap# If applicable, add the following below this CDDL HEADER, with the
16a6d42e7dSPeter Dunlap# fields enclosed by brackets "[]" replaced with your own identifying
17a6d42e7dSPeter Dunlap# information: Portions Copyright [yyyy] [name of copyright owner]
18a6d42e7dSPeter Dunlap#
19a6d42e7dSPeter Dunlap# CDDL HEADER END
20a6d42e7dSPeter Dunlap#
21a6d42e7dSPeter Dunlap#
224558d122SViswanathan Kannappan# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23a6d42e7dSPeter Dunlap#
24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
25a6d42e7dSPeter Dunlap
26a6d42e7dSPeter Dunlap#
27a6d42e7dSPeter Dunlap#	Path to the base of the uts directory tree (usually /usr/src/uts).
28a6d42e7dSPeter Dunlap#
29a6d42e7dSPeter DunlapUTSBASE	= ../..
30a6d42e7dSPeter Dunlap
31a6d42e7dSPeter DunlapARCHDIR:sh = cd ..; basename `pwd`
32a6d42e7dSPeter Dunlap
33a6d42e7dSPeter Dunlap#
34a6d42e7dSPeter Dunlap#	Define the module and object file sets.
35a6d42e7dSPeter Dunlap#
36a6d42e7dSPeter DunlapMODULE		= iscsit
37a6d42e7dSPeter DunlapOBJECTS		= $(ISCSIT_OBJS:%=$(OBJS_DIR)/%)
38a6d42e7dSPeter DunlapROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
39a6d42e7dSPeter DunlapCONF_SRCDIR	= $(UTSBASE)/common/io/comstar/port/iscsit
40a6d42e7dSPeter Dunlap
41a6d42e7dSPeter Dunlap#
42a6d42e7dSPeter Dunlap#	Include common rules.
43a6d42e7dSPeter Dunlap#
44a6d42e7dSPeter Dunlapinclude ../Makefile.$(ARCHDIR)
45a6d42e7dSPeter Dunlap
46a6d42e7dSPeter Dunlap#
47a6d42e7dSPeter Dunlap#	Define targets
48a6d42e7dSPeter Dunlap#
49a6d42e7dSPeter DunlapALL_TARGET	= $(BINARY) $(SRC_CONFILE)
50a6d42e7dSPeter DunlapINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
51a6d42e7dSPeter Dunlap
52a6d42e7dSPeter Dunlap#
53a6d42e7dSPeter Dunlap#	Overrides and depends_on
54a6d42e7dSPeter Dunlap#
55*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/stmf -Nmisc/idm -Nfs/sockfs -Nmisc/md5 -Nmisc/ksocket
56a6d42e7dSPeter Dunlap
577014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
58d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
607014882cSRichard Lowe
61b6b206fcSJohn Levon# needs work
62b6b206fcSJohn LevonSMOFF += cast_assign,strcpy_overflow
63b6b206fcSJohn Levon
64b6b206fcSJohn Levon
65a6d42e7dSPeter Dunlap#
66a6d42e7dSPeter Dunlap#	Default build targets.
67a6d42e7dSPeter Dunlap#
68a6d42e7dSPeter Dunlap.KEEP_STATE:
69a6d42e7dSPeter Dunlap
70a6d42e7dSPeter Dunlapdef:		$(DEF_DEPS)
71a6d42e7dSPeter Dunlap
72a6d42e7dSPeter Dunlapall:		$(ALL_DEPS)
73a6d42e7dSPeter Dunlap
74a6d42e7dSPeter Dunlapclean:		$(CLEAN_DEPS)
75a6d42e7dSPeter Dunlap
76a6d42e7dSPeter Dunlapclobber:	$(CLOBBER_DEPS)
77a6d42e7dSPeter Dunlap
78a6d42e7dSPeter Dunlapinstall:	$(INSTALL_DEPS)
79a6d42e7dSPeter Dunlap
80a6d42e7dSPeter Dunlap#
81a6d42e7dSPeter Dunlap#	Include common targets.
82a6d42e7dSPeter Dunlap#
83a6d42e7dSPeter Dunlapinclude ../Makefile.targ
84