common/octeontx: move mbox to common folder
[dpdk.git] / drivers / event / octeontx / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 #
8 # library name
9 #
10 LIB = librte_pmd_octeontx_ssovf.a
11
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx/
15 CFLAGS += -I$(RTE_SDK)/drivers/net/octeontx/
16
17 LDLIBS += -lrte_eal -lrte_eventdev -lrte_common_octeontx -lrte_pmd_octeontx
18 LDLIBS += -lrte_bus_pci -lrte_mempool -lrte_mbuf -lrte_kvargs
19 LDLIBS += -lrte_bus_vdev
20
21 EXPORT_MAP := rte_pmd_octeontx_event_version.map
22
23 LIBABIVER := 1
24
25 #
26 # all source are stored in SRCS-y
27 #
28 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_worker.c
29 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev.c
30 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_evdev_selftest.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += ssovf_probe.c
32
33 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
34 CFLAGS_ssovf_worker.o += -fno-prefetch-loop-arrays
35
36 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
37 CFLAGS_ssovf_worker.o += -Ofast
38 else
39 CFLAGS_ssovf_worker.o += -O3 -ffast-math
40 endif
41
42 else
43 CFLAGS_ssovf_worker.o += -Ofast
44 endif
45
46 include $(RTE_SDK)/mk/rte.lib.mk