2017-12-19 15:49:01 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2015 Intel Corporation
|
2014-02-10 15:27:26 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
#
|
|
|
|
# library name
|
|
|
|
#
|
2014-03-21 13:52:17 +01:00
|
|
|
LIB = librte_pmd_vmxnet3_uio.a
|
2014-02-10 15:27:26 +00:00
|
|
|
|
2018-03-28 17:43:47 +02:00
|
|
|
CFLAGS += -DALLOW_EXPERIMENTAL_API
|
2014-02-10 15:27:26 +00:00
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
|
|
|
2016-05-26 16:50:14 +05:30
|
|
|
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
|
2014-02-10 15:27:26 +00:00
|
|
|
#
|
|
|
|
# CFLAGS for icc
|
|
|
|
#
|
2018-04-13 23:21:08 +01:00
|
|
|
CFLAGS_BASE_DRIVER = -diag-disable 174 -diag-disable 593 -diag-disable 869
|
|
|
|
CFLAGS_BASE_DRIVER += -diag-disable 981 -diag-disable 2259
|
2014-07-08 00:36:55 +01:00
|
|
|
|
2016-05-26 16:50:14 +05:30
|
|
|
else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
|
2014-07-08 00:36:55 +01:00
|
|
|
#
|
|
|
|
# CFLAGS for clang
|
|
|
|
#
|
|
|
|
CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
|
|
|
|
CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
|
|
|
|
|
2014-06-04 00:42:50 +01:00
|
|
|
else
|
2014-02-10 15:27:26 +00:00
|
|
|
#
|
|
|
|
# CFLAGS for gcc
|
|
|
|
#
|
2015-02-24 12:46:56 +02:00
|
|
|
ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
|
2014-02-10 15:27:26 +00:00
|
|
|
CFLAGS += -Wno-deprecated
|
|
|
|
endif
|
2014-06-24 10:03:02 +02:00
|
|
|
CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
|
|
|
|
CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
|
2014-02-10 15:27:26 +00:00
|
|
|
|
|
|
|
endif
|
2017-10-12 18:04:21 +02:00
|
|
|
LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
|
2017-10-26 12:06:08 +02:00
|
|
|
LDLIBS += -lrte_bus_pci
|
2014-02-10 15:27:26 +00:00
|
|
|
|
2015-05-15 16:56:59 +01:00
|
|
|
VPATH += $(SRCDIR)/base
|
2014-02-10 15:27:26 +00:00
|
|
|
|
2015-02-02 12:40:20 -05:00
|
|
|
EXPORT_MAP := rte_pmd_vmxnet3_version.map
|
|
|
|
|
2015-02-02 12:40:21 -05:00
|
|
|
LIBABIVER := 1
|
|
|
|
|
2014-02-10 15:27:26 +00:00
|
|
|
#
|
|
|
|
# all source are stored in SRCS-y
|
|
|
|
#
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3_rxtx.c
|
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3_ethdev.c
|
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|