87cce22c63e4b7162298a722decd9104c5450959
[dpdk.git] / drivers / mempool / octeontx2 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 include $(RTE_SDK)/mk/rte.vars.mk
6
7 #
8 # library name
9 #
10 LIB = librte_mempool_octeontx2.a
11
12 CFLAGS += $(WERROR_FLAGS)
13 CFLAGS += -I$(RTE_SDK)/drivers/common/octeontx2
14 CFLAGS += -I$(RTE_SDK)/drivers/mempool/octeontx2
15 CFLAGS += -I$(RTE_SDK)/drivers/bus/pci
16 CFLAGS += -O3
17
18 ifneq ($(CONFIG_RTE_ARCH_64),y)
19 CFLAGS += -Wno-int-to-pointer-cast
20 CFLAGS += -Wno-pointer-to-int-cast
21 ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
22 CFLAGS += -diag-disable 2259
23 endif
24 endif
25
26 EXPORT_MAP := rte_mempool_octeontx2_version.map
27
28 LIBABIVER := 1
29
30 #
31 # all source are stored in SRCS-y
32 #
33 SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX2_MEMPOOL) += \
34         otx2_mempool_ops.c      \
35         otx2_mempool.c          \
36         otx2_mempool_irq.c      \
37         otx2_mempool_debug.c
38
39 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf
40 LDLIBS += -lrte_common_octeontx2 -lrte_kvargs -lrte_bus_pci
41
42 include $(RTE_SDK)/mk/rte.lib.mk