event/opdl: fix build using C99 mode
[dpdk.git] / drivers / event / opdl / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # library name
7 LIB = librte_pmd_opdl_event.a
8
9 # build flags
10 CFLAGS += -std=c99
11 CFLAGS += -D_XOPEN_SOURCE=600
12 CFLAGS += -O3
13 CFLAGS += $(WERROR_FLAGS)
14 # for older GCC versions, allow us to initialize an event using
15 # designated initializers.
16 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
17 ifeq ($(shell test $(GCC_VERSION) -le 50 && echo 1), 1)
18 CFLAGS += -Wno-missing-field-initializers
19 endif
20 endif
21
22 LDLIBS += -lrte_eal -lrte_eventdev -lrte_kvargs
23 LDLIBS += -lrte_bus_vdev -lrte_mbuf -lrte_mempool
24
25 # library version
26 LIBABIVER := 1
27
28 # versioning export map
29 EXPORT_MAP := rte_pmd_evdev_opdl_version.map
30
31 # library source files
32 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_ring.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev_init.c
35 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_evdev_xstats.c
36 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OPDL_EVENTDEV) += opdl_test.c
37
38 # export include files
39 SYMLINK-y-include +=
40
41 include $(RTE_SDK)/mk/rte.lib.mk