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
11 CFLAGS += $(WERROR_FLAGS)
12 # for older GCC versions, allow us to initialize an event using
13 # designated initializers.
14 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
15 ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
16 CFLAGS += -Wno-missing-field-initializers
19 LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs -lrte_ring
20 LDLIBS += -lrte_bus_vdev
25 # versioning export map
26 EXPORT_MAP := rte_pmd_sw_event_version.map
28 # library source files
29 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev.c
30 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_worker.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_scheduler.c
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_SW_EVENTDEV) += sw_evdev_xstats.c
34 # export include files
37 include $(RTE_SDK)/mk/rte.lib.mk