New upstream version 18.02
[deb_dpdk.git] / lib / librte_hash / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2015 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # library name
7 LIB = librte_hash.a
8
9 CFLAGS += -O3
10 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
11 LDLIBS += -lrte_eal -lrte_ring
12
13 EXPORT_MAP := rte_hash_version.map
14
15 LIBABIVER := 2
16
17 # all source are stored in SRCS-y
18 SRCS-$(CONFIG_RTE_LIBRTE_HASH) := rte_cuckoo_hash.c
19 SRCS-$(CONFIG_RTE_LIBRTE_HASH) += rte_fbk_hash.c
20
21 # install this header file
22 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include := rte_hash.h
23 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include += rte_hash_crc.h
24 ifeq ($(CONFIG_RTE_ARCH_ARM64),y)
25 ifneq ($(findstring RTE_MACHINE_CPUFLAG_CRC32,$(CFLAGS)),)
26 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include += rte_crc_arm64.h
27 endif
28 endif
29 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include += rte_jhash.h
30 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include += rte_thash.h
31 SYMLINK-$(CONFIG_RTE_LIBRTE_HASH)-include += rte_fbk_hash.h
32
33 include $(RTE_SDK)/mk/rte.lib.mk