xref: /illumos-gate/usr/src/uts/intel/eoib/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1b494511aSVenki Rajagopalan#
2b494511aSVenki Rajagopalan# CDDL HEADER START
3b494511aSVenki Rajagopalan#
4b494511aSVenki Rajagopalan# The contents of this file are subject to the terms of the
5b494511aSVenki Rajagopalan# Common Development and Distribution License (the "License").
6b494511aSVenki Rajagopalan# You may not use this file except in compliance with the License.
7b494511aSVenki Rajagopalan#
8b494511aSVenki Rajagopalan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b494511aSVenki Rajagopalan# or http://www.opensolaris.org/os/licensing.
10b494511aSVenki Rajagopalan# See the License for the specific language governing permissions
11b494511aSVenki Rajagopalan# and limitations under the License.
12b494511aSVenki Rajagopalan#
13b494511aSVenki Rajagopalan# When distributing Covered Code, include this CDDL HEADER in each
14b494511aSVenki Rajagopalan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b494511aSVenki Rajagopalan# If applicable, add the following below this CDDL HEADER, with the
16b494511aSVenki Rajagopalan# fields enclosed by brackets "[]" replaced with your own identifying
17b494511aSVenki Rajagopalan# information: Portions Copyright [yyyy] [name of copyright owner]
18b494511aSVenki Rajagopalan#
19b494511aSVenki Rajagopalan# CDDL HEADER END
20b494511aSVenki Rajagopalan#
21b494511aSVenki Rajagopalan
22b494511aSVenki Rajagopalan#
23b494511aSVenki Rajagopalan# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24b494511aSVenki Rajagopalan#
25b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26b494511aSVenki Rajagopalan
27b494511aSVenki Rajagopalan#
28b494511aSVenki Rajagopalan# This makefile drives the production of the EoIB Nexus driver
29b494511aSVenki Rajagopalan#
30b494511aSVenki Rajagopalan# intel architecture dependent
31b494511aSVenki Rajagopalan#
32b494511aSVenki Rajagopalan
33b494511aSVenki Rajagopalan#
34b494511aSVenki Rajagopalan# Path to the base of the uts directory tree (usually /usr/src/uts)
35b494511aSVenki Rajagopalan#
36b494511aSVenki RajagopalanUTSBASE	= ../..
37b494511aSVenki Rajagopalan
38b494511aSVenki Rajagopalan#
39b494511aSVenki Rajagopalan# Define the module and object file sets
40b494511aSVenki Rajagopalan#
41b494511aSVenki RajagopalanMODULE		= eoib
42b494511aSVenki RajagopalanOBJECTS		= $(EOIB_OBJS:%=$(OBJS_DIR)/%)
43b494511aSVenki RajagopalanROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
44b494511aSVenki Rajagopalan
45b494511aSVenki Rajagopalan#
46b494511aSVenki Rajagopalan# Include common rules
47b494511aSVenki Rajagopalan#
48b494511aSVenki Rajagopalaninclude $(UTSBASE)/intel/Makefile.intel
49b494511aSVenki Rajagopalan
50b494511aSVenki Rajagopalan#
51b494511aSVenki Rajagopalan# Define targets
52b494511aSVenki Rajagopalan#
53b494511aSVenki RajagopalanALL_TARGET	= $(BINARY)
54b494511aSVenki RajagopalanINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55b494511aSVenki Rajagopalan
56b494511aSVenki Rajagopalan# Module specific debug flag
57b494511aSVenki Rajagopalan#
58b494511aSVenki RajagopalanCPPFLAGS += -DEIB_DEBUG
59b494511aSVenki Rajagopalan
60b494511aSVenki Rajagopalan#
610aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
620aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
630aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles.
64b494511aSVenki Rajagopalan#
65b494511aSVenki RajagopalanCFLAGS		+= $(CCVERBOSE)
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
67d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
687014882cSRichard Lowe
69b6b206fcSJohn Levon# needs work
70b6b206fcSJohn Levon$(OBJS_DIR)/eib_ibt.o := SMOFF += deref_check
71b6b206fcSJohn Levon
72b494511aSVenki Rajagopalan#
73b494511aSVenki Rajagopalan# Depends on misc/ibtl
74b494511aSVenki Rajagopalan#
75*82d0151aSRichard LoweLDFLAGS	+= -Nmisc/mac -Nmisc/ibtl -Nmisc/ibcm -Nmisc/ibmf
76b494511aSVenki Rajagopalan
77b494511aSVenki Rajagopalan#
78b494511aSVenki Rajagopalan# Default build targets
79b494511aSVenki Rajagopalan#
80b494511aSVenki Rajagopalan.KEEP_STATE:
81b494511aSVenki Rajagopalan
82b494511aSVenki Rajagopalandef:		$(DEF_DEPS)
83b494511aSVenki Rajagopalan
84b494511aSVenki Rajagopalanall:		$(ALL_DEPS)
85b494511aSVenki Rajagopalan
86b494511aSVenki Rajagopalanclean:		$(CLEAN_DEPS)
87b494511aSVenki Rajagopalan
88b494511aSVenki Rajagopalanclobber:	$(CLOBBER_DEPS)
89b494511aSVenki Rajagopalan
90b494511aSVenki Rajagopalaninstall:	$(INSTALL_DEPS)
91b494511aSVenki Rajagopalan
92b494511aSVenki Rajagopalan#
93b494511aSVenki Rajagopalan# Include common targets
94b494511aSVenki Rajagopalan#
95b494511aSVenki Rajagopalaninclude $(UTSBASE)/intel/Makefile.targ
96