xref: /illumos-gate/usr/src/uts/intel/bnx/Makefile (revision 3aa6c13072f3d4792a18693e916aed260a496c1f)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright (c) 2018, Joyent, Inc.
14#
15
16#
17# uts/intel/bnx/Makefile
18#
19#	This makefile drives the production of the bnx
20#	driver kernel module.
21#
22#	intel architecture dependent
23#
24
25#
26#	Paths to the base of the uts directory trees
27#
28UTSBASE = ../..
29
30#
31#	Define the module and object file sets.
32#
33MODULE		= bnx
34OBJECTS		= $(BNX_OBJS:%=$(OBJS_DIR)/%)
35ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
36SRCDIR		= $(UTSBASE)/common/io/bnx
37CONF_SRCDIR	= $(SRCDIR)
38
39#
40#	Include common rules.
41#
42include $(UTSBASE)/intel/Makefile.intel
43
44#
45#	Define targets
46#
47ALL_TARGET	= $(BINARY) $(CONFMOD)
48INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
49
50C99MODE=	-xc99=%all
51C99LMODE=	-Xc99=%all
52
53#
54#	Driver-specific flags
55#
56CPPFLAGS += \
57	-D_USE_FRIENDLY_NAME \
58	-DEXCLUDE_RSS_SUPPORT \
59	-DEXCLUDE_KQE_SUPPORT \
60	-DL2_ONLY \
61	-DSOLARIS \
62	-D_ANSI_C_ \
63	-DLM_MAX_MC_TABLE_SIZE=256 \
64	-DBRCMVERSION="\"7.10.4\"" \
65	-DLITTLE_ENDIAN \
66	-DLITTLE_ENDIAN_HOST \
67	-D__LITTLE_ENDIAN
68
69CPPFLAGS += \
70	-I$(SRCDIR) \
71	-I$(SRCDIR)/include \
72	-I$(SRCDIR)/570x/common/include \
73	-I$(SRCDIR)/570x/driver/common/lmdev
74
75
76LDFLAGS		+= -dy -r -Ndrv/ip -Nmisc/mac
77
78#
79#	Default build targets.
80#
81.KEEP_STATE:
82
83def:		$(DEF_DEPS)
84
85all:		$(ALL_DEPS)
86
87clean:		$(CLEAN_DEPS)
88
89clobber:	$(CLOBBER_DEPS)
90
91install:	$(INSTALL_DEPS)
92
93#
94#	Include common targets.
95#
96include $(UTSBASE)/intel/Makefile.targ
97