1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_pmd_opdl_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
20 LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs
21 LDLIBS += -lrte_bus_vdev -lrte_mbuf -lrte_mempool
26 # versioning export map
27 EXPORT_MAP := rte_pmd_evdev_opdl_version.map
29 # library source files
30 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_ring.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev.c
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev_init.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev_xstats.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_test.c
36 # export include files
39 include $(RTE_SDK)/mk/rte.lib.mk