2017-12-19 15:49:03 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2012-09-04 12:54:00 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
|
|
|
|
# library name
|
|
|
|
LIB = librte_lpm.a
|
|
|
|
|
|
|
|
CFLAGS += -O3
|
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
|
2017-10-12 16:04:21 +00:00
|
|
|
LDLIBS += -lrte_eal
|
2012-09-04 12:54:00 +00:00
|
|
|
|
2015-02-02 17:40:20 +00:00
|
|
|
EXPORT_MAP := rte_lpm_version.map
|
|
|
|
|
2015-09-01 13:41:05 +00:00
|
|
|
LIBABIVER := 2
|
2015-02-02 17:40:21 +00:00
|
|
|
|
2012-09-04 12:54:00 +00: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 12:54:00 +00: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 03:52:58 +00:00
|
|
|
|
|
|
|
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 03:52:57 +00:00
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include += rte_lpm_sse.h
|
2016-09-08 16:48:03 +00:00
|
|
|
else ifeq ($(CONFIG_RTE_ARCH_PPC_64),y)
|
|
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_LPM)-include += rte_lpm_altivec.h
|
2016-03-11 03:52:58 +00:00
|
|
|
endif
|
2012-09-04 12:54:00 +00:00
|
|
|
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|