build: disable experimental API check internally
[dpdk.git] / drivers / mempool / 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_mempool_octeontx.a
11
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
14
15 EXPORT_MAP := rte_mempool_octeontx_version.map
16
17 #
18 # all source are stored in SRCS-y
19 #
20 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += octeontx_fpavf.c
21 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += rte_mempool_octeontx.c
22
23 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
24 CFLAGS_rte_mempool_octeontx.o += -fno-prefetch-loop-arrays
25
26 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
27 CFLAGS_rte_mempool_octeontx.o += -Ofast
28 else
29 CFLAGS_rte_mempool_octeontx.o += -O3 -ffast-math
30 endif
31
32 else
33 CFLAGS_rte_mempool_octeontx.o += -Ofast
34 endif
35
36 LDLIBS += -lrte_eal -lrte_mempool -lrte_ring -lrte_mbuf
37 LDLIBS += -lrte_bus_pci -lrte_common_octeontx
38
39 include $(RTE_SDK)/mk/rte.lib.mk