1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
5 include $(RTE_SDK)/mk/rte.vars.mk
10 LIB = librte_mempool_octeontx.a
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx/
15 EXPORT_MAP := rte_mempool_octeontx_version.map
18 # all source are stored in SRCS-y
20 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += octeontx_fpavf.c
21 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_MEMPOOL) += rte_mempool_octeontx.c
23 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
24 CFLAGS_rte_mempool_octeontx.o += -fno-prefetch-loop-arrays
26 ifeq ($(shell test $(GCC_VERSION) -ge 46 && echo 1), 1)
27 CFLAGS_rte_mempool_octeontx.o += -Ofast
29 CFLAGS_rte_mempool_octeontx.o += -O3 -ffast-math
33 CFLAGS_rte_mempool_octeontx.o += -Ofast
36 LDLIBS += -lrte_eal -lrte_mempool -lrte_ring -lrte_mbuf
37 LDLIBS += -lrte_bus_pci -lrte_common_octeontx
39 include $(RTE_SDK)/mk/rte.lib.mk