1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2016-2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_pmd_sw_event.a
10 CFLAGS += -DALLOW_EXPERIMENTAL_API
12 CFLAGS += $(WERROR_FLAGS)
13 # for older GCC versions, allow us to initialize an event using
14 # designated initializers.
15 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
16 ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
17 CFLAGS += -Wno-missing-field-initializers
20 LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs -lrte_ring
21 LDLIBS += -lrte_mempool -lrte_mbuf
22 LDLIBS += -lrte_bus_vdev
27 # versioning export map
28 EXPORT_MAP := rte_pmd_sw_event_version.map
30 # library source files
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev.c
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_worker.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_scheduler.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_xstats.c
35 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_selftest.c
37 # export include files
40 include $(RTE_SDK)/mk/rte.lib.mk