xref: /illumos-gate/usr/src/cmd/mdb/intel/modules/i40e/amd64/Makefile (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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 2018 Joyent, Inc.
14#
15
16MODULE = i40e.so
17MDBTGT = kvm
18
19MODSRCS = i40e.c
20
21include ../../../../../Makefile.cmd
22include ../../../../../Makefile.cmd.64
23include ../../../Makefile.amd64
24include ../../../../Makefile.module
25
26CPPFLAGS += -I$(SRC)/cmd/mdb/common
27CPPFLAGS += -I$(SRC)/uts/common/io/i40e
28CPPFLAGS += -I$(SRC)/uts/common/io/i40e/core
29CPPFLAGS += -I$(SRC)/uts/common
30CPPFLAGS += -D_I40E_MDB_DMOD
31
32#
33# i40e needs this due to the use of Intel provided headers.
34#
35LINTFLAGS64 += -erroff=E_STATIC_UNUSED
36
37#
38# The Intel common code defines some enums which are valid unsigned ints that
39# GCC is fine with, but not Studio.
40#
41CERRWARN	+= -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
42LINTTAGS	+= -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
43