xref: /illumos-gate/usr/src/uts/intel/iser/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
130e7468fSPeter Dunlap#
230e7468fSPeter Dunlap# CDDL HEADER START
330e7468fSPeter Dunlap#
430e7468fSPeter Dunlap# The contents of this file are subject to the terms of the
530e7468fSPeter Dunlap# Common Development and Distribution License (the "License").
630e7468fSPeter Dunlap# You may not use this file except in compliance with the License.
730e7468fSPeter Dunlap#
830e7468fSPeter Dunlap# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
930e7468fSPeter Dunlap# or http://www.opensolaris.org/os/licensing.
1030e7468fSPeter Dunlap# See the License for the specific language governing permissions
1130e7468fSPeter Dunlap# and limitations under the License.
1230e7468fSPeter Dunlap#
1330e7468fSPeter Dunlap# When distributing Covered Code, include this CDDL HEADER in each
1430e7468fSPeter Dunlap# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1530e7468fSPeter Dunlap# If applicable, add the following below this CDDL HEADER, with the
1630e7468fSPeter Dunlap# fields enclosed by brackets "[]" replaced with your own identifying
1730e7468fSPeter Dunlap# information: Portions Copyright [yyyy] [name of copyright owner]
1830e7468fSPeter Dunlap#
1930e7468fSPeter Dunlap# CDDL HEADER END
2030e7468fSPeter Dunlap#
2130e7468fSPeter Dunlap# usr/src/uts/intel/iser/Makefile
2230e7468fSPeter Dunlap#
2330e7468fSPeter Dunlap# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2430e7468fSPeter Dunlap# Use is subject to license terms.
25*b6b206fcSJohn Levon#
26*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
2730e7468fSPeter Dunlap
2830e7468fSPeter Dunlap#
2930e7468fSPeter Dunlap#	Path to the base of the uts directory tree (usually /usr/src/uts).
3030e7468fSPeter Dunlap#
3130e7468fSPeter DunlapUTSBASE	= ../..
3230e7468fSPeter Dunlap
3330e7468fSPeter Dunlap#
3430e7468fSPeter Dunlap#	Define the module and object file sets.
3530e7468fSPeter Dunlap#
3630e7468fSPeter DunlapMODULE		= iser
3730e7468fSPeter DunlapOBJECTS		= $(ISER_OBJS:%=$(OBJS_DIR)/%)
3830e7468fSPeter DunlapLINTS		= $(ISER_OBJS:%.o=$(LINTS_DIR)/%.ln)
3930e7468fSPeter DunlapROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4030e7468fSPeter DunlapLDFLAGS		+= -dy -Nmisc/ibtl -Nmisc/ibcm -Nmisc/idm
4130e7468fSPeter DunlapCONF_SRCDIR	= $(UTSBASE)/common/io/ib/clients/iser
4230e7468fSPeter Dunlap
4330e7468fSPeter Dunlap#
4430e7468fSPeter Dunlap#	Include common rules.
4530e7468fSPeter Dunlap#
4630e7468fSPeter Dunlapinclude $(UTSBASE)/intel/Makefile.intel
4730e7468fSPeter Dunlap
487014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
497014882cSRichard Lowe
50*b6b206fcSJohn Levon# needs work
51*b6b206fcSJohn Levon$(OBJS_DIR)/iser_ib.o := SMOFF += deref_check
52*b6b206fcSJohn Levon
5330e7468fSPeter Dunlap#
5430e7468fSPeter Dunlap#	Define targets
5530e7468fSPeter Dunlap#
5630e7468fSPeter DunlapALL_TARGET	= $(BINARY) $(SRC_CONFILE)
5730e7468fSPeter DunlapLINT_TARGET	= $(MODULE).lint
5830e7468fSPeter DunlapINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
5930e7468fSPeter Dunlap
6030e7468fSPeter Dunlap#
6130e7468fSPeter Dunlap#	Default build targets.
6230e7468fSPeter Dunlap#
6330e7468fSPeter Dunlap.KEEP_STATE:
6430e7468fSPeter Dunlap
6530e7468fSPeter Dunlapdef:		$(DEF_DEPS)
6630e7468fSPeter Dunlap
6730e7468fSPeter Dunlapall:		$(ALL_DEPS)
6830e7468fSPeter Dunlap
6930e7468fSPeter Dunlapclean:		$(CLEAN_DEPS)
7030e7468fSPeter Dunlap
7130e7468fSPeter Dunlapclobber:	$(CLOBBER_DEPS)
7230e7468fSPeter Dunlap
7330e7468fSPeter Dunlaplint:		$(LINT_DEPS)
7430e7468fSPeter Dunlap
7530e7468fSPeter Dunlapmodlintlib:	$(MODLINTLIB_DEPS)
7630e7468fSPeter Dunlap
7730e7468fSPeter Dunlapclean.lint:	$(CLEAN_LINT_DEPS)
7830e7468fSPeter Dunlap
7930e7468fSPeter Dunlapinstall:	$(INSTALL_DEPS)
8030e7468fSPeter Dunlap
8130e7468fSPeter Dunlap#
8230e7468fSPeter Dunlap#	Include common targets.
8330e7468fSPeter Dunlap#
8430e7468fSPeter Dunlapinclude $(UTSBASE)/intel/Makefile.targ
85