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
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.
13 # Copyright 2017 Joyent, Inc.
19 OBJECTS
= $(I40E_OBJS
:%=$(OBJS_DIR
)/%) $(I40E_INTC_OBJS
:%=$(OBJS_DIR
)/%)
20 LINTS
= $(I40E_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
21 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
22 CONF_SRCDIR
= $(UTSBASE
)/common
/io
/i40e
24 include $(UTSBASE
)/intel
/Makefile.intel
26 CPPFLAGS
+= -I
$(UTSBASE
)/common
/io
/i40e
27 CPPFLAGS
+= -I
$(UTSBASE
)/common
/io
/i40e
/core
29 ALL_TARGET
= $(BINARY
) $(CONFMOD
)
30 LINT_TARGET
= $(MODULE
).lint
31 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
34 # The Intel common code defines some values in header files that end up in all
35 # of our objects. Therefore we don't try to lint for that.
37 LINTTAGS
+= -erroff
=E_STATIC_UNUSED
38 LINTTAGS
+= -erroff
=E_ENUM_VAL_OVERFLOWS_INT_MAX
41 # The Intel common code defines some enums which are valid unsigned ints that
42 # GCC is fine with, but not Studio.
44 CERRWARN
+= -_cc
=-erroff
=E_ENUM_VAL_OVERFLOWS_INT_MAX
46 LDFLAGS
+= -dy
-N misc
/mac
56 clobber: $(CLOBBER_DEPS
)
60 modlintlib
: $(MODLINTLIB_DEPS
)
62 clean.lint
: $(CLEAN_LINT_DEPS
)
64 install: $(INSTALL_DEPS
)
66 include $(UTSBASE
)/intel
/Makefile.targ