1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
10 # Allow deprecated symbol to use deprecated rte_mempool_populate_iova_tab()
11 # from earlier deprecated rte_mempool_populate_phys_tab()
12 CFLAGS += -Wno-deprecated-declarations
13 LDLIBS += -lrte_eal -lrte_ring
15 EXPORT_MAP := rte_mempool_version.map
19 # memseg walk is not yet part of stable API
20 CFLAGS += -DALLOW_EXPERIMENTAL_API
22 # all source are stored in SRCS-y
23 SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool.c
24 SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool_ops.c
25 SRCS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += rte_mempool_ops_default.c
27 SYMLINK-$(CONFIG_RTE_LIBRTE_MEMPOOL)-include := rte_mempool.h
29 include $(RTE_SDK)/mk/rte.lib.mk