New upstream version 18.02
[deb_dpdk.git] / lib / librte_distributor / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # library name
7 LIB = librte_distributor.a
8
9 CFLAGS += -O3
10 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
11 LDLIBS += -lrte_eal -lrte_mbuf -lrte_ethdev
12
13 EXPORT_MAP := rte_distributor_version.map
14
15 LIBABIVER := 1
16
17 # all source are stored in SRCS-y
18 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor_v20.c
19 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor.c
20 ifeq ($(CONFIG_RTE_ARCH_X86),y)
21 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_sse.c
22 else
23 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_generic.c
24 endif
25
26
27 # install this header file
28 SYMLINK-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR)-include := rte_distributor.h
29
30 include $(RTE_SDK)/mk/rte.lib.mk