net/ice: fix Tx threshold setup
[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 -lrte_ethdev
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 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_worker.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_evdev.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF) += timvf_probe.c
35
36 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
37 CFLAGS_ssovf_worker.o += -fno-prefetch-loop-arrays
38 CFLAGS_timvf_worker.o += -fno-prefetch-loop-arrays
39
40 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
41 CFLAGS_ssovf_worker.o += -Ofast
42 CFLAGS_timvf_worker.o += -Ofast
43 else
44 CFLAGS_ssovf_worker.o += -O3 -ffast-math
45 CFLAGS_timvf_worker.o += -O3 -ffast-math
46 endif
47
48 else
49 CFLAGS_ssovf_worker.o += -Ofast
50 CFLAGS_timvf_worker.o += -Ofast
51 endif
52
53 include $(RTE_SDK)/mk/rte.lib.mk