2017-12-19 15:49:03 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
# library name
|
|
|
|
LIB = librte_lpm.a
|
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
|
2018-09-18 13:57:09 +03:00
|
|
|
LDLIBS += -lrte_eal -lrte_hash
|
2012-09-04 13:54:00 +01:00
|
|
|
|
2015-02-02 12:40:20 -05:00
|
|
|
EXPORT_MAP := rte_lpm_version.map
|
|
|
|
|
2015-09-01 15:41:05 +02:00
|
|
|
LIBABIVER := 2
|
2015-02-02 12:40:21 -05:00
|
|
|
|
2012-09-04 13:54:00 +01:00
|
|
|
# all source are stored in SRCS-y
|
2013-06-03 00:00:00 +00:00
|
|
|
SRCS-$(CONFIG_RTE_LIBRTE_LPM) := rte_lpm.c rte_lpm6.c
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
# install this header file
|
2013-06-03 00:00:00 +00:00
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include := rte_lpm.h rte_lpm6.h
|
2016-03-11 09:22:58 +05:30
|
|
|
|
|
|
|
ifneq ($(filter y,$(CONFIG_RTE_ARCH_ARM) $(CONFIG_RTE_ARCH_ARM64)),)
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include += rte_lpm_neon.h
|
|
|
|
else ifeq ($(CONFIG_RTE_ARCH_X86),y)
|
2016-03-11 09:22:57 +05:30
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include += rte_lpm_sse.h
|
2016-09-08 22:18:03 +05:30
|
|
|
else ifeq ($(CONFIG_RTE_ARCH_PPC_64),y)
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include += rte_lpm_altivec.h
|
2016-03-11 09:22:58 +05:30
|
|
|
endif
|
2012-09-04 13:54:00 +01:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|