xref: /illumos-gate/usr/src/uts/intel/bnx/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
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
50#
51#	Driver-specific flags
52#
53CPPFLAGS += \
54	-D_USE_FRIENDLY_NAME \
55	-DEXCLUDE_RSS_SUPPORT \
56	-DEXCLUDE_KQE_SUPPORT \
57	-DL2_ONLY \
58	-DSOLARIS \
59	-D_ANSI_C_ \
60	-DLM_MAX_MC_TABLE_SIZE=256 \
61	-DBRCMVERSION="\"7.10.4\"" \
62	-DLITTLE_ENDIAN \
63	-DLITTLE_ENDIAN_HOST \
64	-D__LITTLE_ENDIAN
65
66CPPFLAGS += \
67	-I$(SRCDIR) \
68	-I$(SRCDIR)/include \
69	-I$(SRCDIR)/570x/common/include \
70	-I$(SRCDIR)/570x/driver/common/lmdev
71
72
73LDFLAGS		+= -Ndrv/ip -Nmisc/mac
74
75#
76#	Default build targets.
77#
78.KEEP_STATE:
79
80def:		$(DEF_DEPS)
81
82all:		$(ALL_DEPS)
83
84clean:		$(CLEAN_DEPS)
85
86clobber:	$(CLOBBER_DEPS)
87
88install:	$(INSTALL_DEPS)
89
90#
91#	Include common targets.
92#
93include $(UTSBASE)/intel/Makefile.targ
94