2014-02-10 15:27:26 +00:00
|
|
|
# BSD LICENSE
|
2014-06-04 00:42:50 +01:00
|
|
|
#
|
2015-05-15 16:56:59 +01:00
|
|
|
# Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
|
2014-02-10 15:27:26 +00:00
|
|
|
# All rights reserved.
|
2014-06-04 00:42:50 +01:00
|
|
|
#
|
2014-02-10 15:27:26 +00:00
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
2014-06-04 00:42:50 +01:00
|
|
|
#
|
2014-02-10 15:27:26 +00:00
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# * Neither the name of Intel Corporation nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
2014-06-04 00:42:50 +01:00
|
|
|
#
|
2014-02-10 15:27:26 +00:00
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|
|
|
|
#
|
2014-06-24 10:03:02 +02:00
|
|
|
CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259
|
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
|