xref: /illumos-gate/usr/src/uts/intel/i40e/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
16UTSBASE = ../..
17
18MODULE		= i40e
19OBJECTS		= $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%)
20ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
21CONF_SRCDIR	= $(UTSBASE)/common/io/i40e
22
23include $(UTSBASE)/intel/Makefile.intel
24
25CPPFLAGS	+= -I$(UTSBASE)/common/io/i40e
26CPPFLAGS	+= -I$(UTSBASE)/common/io/i40e/core
27
28ALL_TARGET	= $(BINARY) $(CONFMOD)
29INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
30
31# 3rd party code
32SMOFF += all_func_returns
33
34LDFLAGS		+= -N misc/mac
35
36MAPFILES	+= ddi mac random
37
38.KEEP_STATE:
39
40def:		$(DEF_DEPS)
41
42all:		$(ALL_DEPS)
43
44clean:		$(CLEAN_DEPS)
45
46clobber:	$(CLOBBER_DEPS)
47
48install:	$(INSTALL_DEPS)
49
50include $(UTSBASE)/Makefile.mapfile
51include $(UTSBASE)/intel/Makefile.targ
52