net/nfb: add new netcope driver
[dpdk.git] / drivers / net / nfb / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Cesnet
3 # Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
4 # All rights reserved.
5
6 include $(RTE_SDK)/mk/rte.vars.mk
7
8 #
9 # library name
10 #
11 LIB = librte_pmd_nfb.a
12
13 INCLUDES :=-I$(SRCDIR)
14
15
16 CFLAGS += -O3
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)
23
24 EXPORT_MAP := rte_pmd_nfb_version.map
25
26 LIBABIVER := 1
27
28 #
29 # all source are stored in SRCS-y
30 #
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
36
37 #
38 # Export include files
39 #
40 SYMLINK-y-include +=
41
42 include $(RTE_SDK)/mk/rte.lib.mk