xref: /illumos-gate/usr/src/uts/intel/i40e/Makefile (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
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#
32# The Intel common code defines some enums which are valid unsigned ints that
33# GCC is fine with, but not Studio.
34#
35CERRWARN   += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
36
37# 3rd party code
38SMOFF += all_func_returns
39
40LDFLAGS		+= -N misc/mac
41
42MAPFILES	+= ddi mac random
43
44.KEEP_STATE:
45
46def:		$(DEF_DEPS)
47
48all:		$(ALL_DEPS)
49
50clean:		$(CLEAN_DEPS)
51
52clobber:	$(CLOBBER_DEPS)
53
54install:	$(INSTALL_DEPS)
55
56include $(UTSBASE)/Makefile.mapfile
57include $(UTSBASE)/intel/Makefile.targ
58