1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Cesnet
3 # Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
6 include $(RTE_SDK)/mk/rte.vars.mk
11 LIB = librte_pmd_nfb.a
13 INCLUDES :=-I$(SRCDIR)
17 CFLAGS += $(WERROR_FLAGS)
18 CFLAGS += $(shell command -v pkg-config > /dev/null 2>&1 && pkg-config --cflags netcope-common)
19 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool
20 LDLIBS += -lrte_ethdev -lrte_net
21 LDLIBS += -lrte_bus_pci
22 LDLIBS += $(shell command -v pkg-config > /dev/null 2>&1 && pkg-config --libs netcope-common)
24 EXPORT_MAP := rte_pmd_nfb_version.map
29 # all source are stored in SRCS-y
31 SRCS-$(CONFIG_RTE_LIBRTE_NFB_PMD) += nfb_ethdev.c
32 SRCS-$(CONFIG_RTE_LIBRTE_NFB_PMD) += nfb_rx.c
33 SRCS-$(CONFIG_RTE_LIBRTE_NFB_PMD) += nfb_tx.c
34 SRCS-$(CONFIG_RTE_LIBRTE_NFB_PMD) += nfb_stats.c
35 SRCS-$(CONFIG_RTE_LIBRTE_NFB_PMD) += nfb_rxmode.c
38 # Export include files
42 include $(RTE_SDK)/mk/rte.lib.mk