1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 LIB = librte_pmd_softnic.a
11 CFLAGS += -DALLOW_EXPERIMENTAL_API
13 CFLAGS += $(WERROR_FLAGS)
14 LDLIBS += -lrte_pipeline -lrte_port -lrte_table
15 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
16 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs -lrte_sched
17 LDLIBS += -lrte_bus_vdev
19 EXPORT_MAP := rte_pmd_softnic_version.map
24 # all source are stored in SRCS-y
26 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic.c
27 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_mempool.c
28 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_swq.c
29 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_link.c
30 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_tm.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_tap.c
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_action.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_pipeline.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_thread.c
35 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += rte_eth_softnic_cli.c
36 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += parser.c
37 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SOFTNIC) += conn.c
40 # Export include files
42 SYMLINK-y-include += rte_eth_softnic.h
44 ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp")
45 $(info Softnic PMD can only operate in a linuxapp environment, \
46 please change the definition of the RTE_TARGET environment variable)
51 include $(RTE_SDK)/mk/rte.lib.mk