xref: /illumos-gate/usr/src/uts/intel/rdsv3/Makefile (revision 0aaef2f550fa500248f59b0b8a14225b5afbd198)
1c0dd49bdSEiji Ota#
2c0dd49bdSEiji Ota# CDDL HEADER START
3c0dd49bdSEiji Ota#
4c0dd49bdSEiji Ota# The contents of this file are subject to the terms of the
5c0dd49bdSEiji Ota# Common Development and Distribution License (the "License").
6c0dd49bdSEiji Ota# You may not use this file except in compliance with the License.
7c0dd49bdSEiji Ota#
8c0dd49bdSEiji Ota# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c0dd49bdSEiji Ota# or http://www.opensolaris.org/os/licensing.
10c0dd49bdSEiji Ota# See the License for the specific language governing permissions
11c0dd49bdSEiji Ota# and limitations under the License.
12c0dd49bdSEiji Ota#
13c0dd49bdSEiji Ota# When distributing Covered Code, include this CDDL HEADER in each
14c0dd49bdSEiji Ota# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c0dd49bdSEiji Ota# If applicable, add the following below this CDDL HEADER, with the
16c0dd49bdSEiji Ota# fields enclosed by brackets "[]" replaced with your own identifying
17c0dd49bdSEiji Ota# information: Portions Copyright [yyyy] [name of copyright owner]
18c0dd49bdSEiji Ota#
19c0dd49bdSEiji Ota# CDDL HEADER END
20c0dd49bdSEiji Ota#
21c0dd49bdSEiji Ota#
22c0dd49bdSEiji Ota# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23c0dd49bdSEiji Ota#
24b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
25c0dd49bdSEiji Ota
26c0dd49bdSEiji Ota#
27c0dd49bdSEiji Ota#	Path to the base of the uts directory tree (usually /usr/src/uts).
28c0dd49bdSEiji Ota#
29c0dd49bdSEiji OtaUTSBASE	= ../..
30c0dd49bdSEiji Ota
31c0dd49bdSEiji Ota#
32c0dd49bdSEiji Ota#	Define the module and object file sets.
33c0dd49bdSEiji Ota#
34c0dd49bdSEiji OtaMODULE		= rdsv3
35c0dd49bdSEiji OtaOBJECTS		= $(RDSV3_OBJS:%=$(OBJS_DIR)/%)
36c0dd49bdSEiji OtaROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
37c0dd49bdSEiji OtaCFLAGS		+= $(CCVERBOSE) $(_XPG4_2)
38b27516f5SagiriLDFLAGS		+= -dy -Nfs/sockfs -Nmisc/ksocket -Ndrv/ip -Nmisc/ibtl -Nmisc/ibcm -Nmisc/sol_ofs
39c0dd49bdSEiji OtaCONF_SRCDIR	= $(UTSBASE)/common/io/ib/clients/rdsv3
40c0dd49bdSEiji Ota#
41c0dd49bdSEiji Ota#	Include common rules.
42c0dd49bdSEiji Ota#
43c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.intel
44c0dd49bdSEiji Ota
45c0dd49bdSEiji Ota# CFLAGS		+= -DOFA_SOLARIS
46c0dd49bdSEiji Ota
47c0dd49bdSEiji Ota#
48*0aaef2f5SRichard Lowe# Disable these warnings since some errors suppressed here are in the OFED
49*0aaef2f5SRichard Lowe# code, but we'd like to keep it as is as much as possible.  Note. maintainers
50*0aaef2f5SRichard Lowe# should endeavor to investigate and remove these for maximum coverage, please
51*0aaef2f5SRichard Lowe# do not carry these forward to new Makefiles blindly.
52c0dd49bdSEiji Ota#
537014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
547014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
557014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
56d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
577014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
587014882cSRichard Lowe
59b6b206fcSJohn Levon# needs work
60b6b206fcSJohn LevonSMATCH=off
61b6b206fcSJohn Levon
62c0dd49bdSEiji Ota#
63c0dd49bdSEiji Ota#	Define targets
64c0dd49bdSEiji Ota#
65c0dd49bdSEiji OtaALL_TARGET	= $(BINARY) $(SRC_CONFILE)
66c0dd49bdSEiji OtaINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
67c0dd49bdSEiji Ota
68c0dd49bdSEiji Ota#
69c0dd49bdSEiji Ota#	Default build targets.
70c0dd49bdSEiji Ota#
71c0dd49bdSEiji Ota.KEEP_STATE:
72c0dd49bdSEiji Ota
73c0dd49bdSEiji Otadef:		$(DEF_DEPS)
74c0dd49bdSEiji Ota
75c0dd49bdSEiji Otaall:		$(ALL_DEPS)
76c0dd49bdSEiji Ota
77c0dd49bdSEiji Otaclean:		$(CLEAN_DEPS)
78c0dd49bdSEiji Ota
79c0dd49bdSEiji Otaclobber:	$(CLOBBER_DEPS)
80c0dd49bdSEiji Ota
81c0dd49bdSEiji Otainstall:	$(INSTALL_DEPS)
82c0dd49bdSEiji Ota
83c0dd49bdSEiji Ota#
84c0dd49bdSEiji Ota#	Include common targets.
85c0dd49bdSEiji Ota#
86c0dd49bdSEiji Otainclude $(UTSBASE)/intel/Makefile.targ
87c0dd49bdSEiji Ota
88