1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2015 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 LIB = librte_pmd_vmxnet3_uio.a
11 CFLAGS += -DALLOW_EXPERIMENTAL_API
13 CFLAGS += $(WERROR_FLAGS)
15 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
19 CFLAGS_BASE_DRIVER = -diag-disable 174 -diag-disable 593 -diag-disable 869
20 CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
22 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
26 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
27 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
33 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
34 CFLAGS += -Wno-deprecated
36 CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
37 CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
40 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
41 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
42 LDLIBS += -lrte_bus_pci
44 VPATH += $(SRCDIR)/base
46 EXPORT_MAP := rte_pmd_vmxnet3_version.map
51 # all source are stored in SRCS-y
53 SRCS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3_rxtx.c
54 SRCS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3_ethdev.c
56 include $(RTE_SDK)/mk/rte.lib.mk