1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016 Cavium, Inc
5 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_pmd_thunderx_nicvf.a
12 CFLAGS += $(WERROR_FLAGS)
15 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
16 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
17 LDLIBS += -lrte_bus_pci
19 EXPORT_MAP := rte_pmd_thunderx_version.map
23 OBJS_BASE_DRIVER=$(sort $(patsubst %.c,%.o,$(notdir $(wildcard $(SRCDIR)/base/*.c))))
24 $(foreach obj, $(OBJS_BASE_DRIVER), $(eval CFLAGS_$(obj)+=$(CFLAGS_BASE_DRIVER)))
26 VPATH += $(SRCDIR)/base
29 # all source are stored in SRCS-y
31 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_rxtx.c
32 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_hw.c
33 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_mbox.c
34 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_ethdev.c
35 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_bsvf.c
36 SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_svf.c
38 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
39 CFLAGS_nicvf_rxtx.o += -fno-prefetch-loop-arrays
41 CFLAGS_nicvf_rxtx.o += -Ofast
43 include $(RTE_SDK)/mk/rte.lib.mk