1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
12 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
13 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_hash
14 LDLIBS += -lrte_bus_pci
16 # used to dump HW descriptor for debugging
17 # CFLAGS += -DDEBUG_DUMP_DESC
19 EXPORT_MAP := rte_pmd_avf_version.map
24 # Add extra flags for base driver files (also known as shared code)
27 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
29 else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y)
30 CFLAGS_BASE_DRIVER = -Wno-pointer-to-int-cast
32 CFLAGS_BASE_DRIVER = -Wno-pointer-to-int-cast
35 OBJS_BASE_DRIVER=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
36 $(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
39 VPATH += $(SRCDIR)/base
42 # all source are stored in SRCS-y
44 SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_adminq.c
45 SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_common.c
47 SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_ethdev.c
48 SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_vchnl.c
49 SRCS-$(CONFIG_RTE_LIBRTE_AVF_PMD) += avf_rxtx.c
50 ifeq ($(CONFIG_RTE_ARCH_x86), y)
51 SRCS-$(CONFIG_RTE_LIBRTE_AVF_INC_VECTOR) += avf_rxtx_vec_sse.c
54 include $(RTE_SDK)/mk/rte.lib.mk