1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_distributor.a
10 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR)
11 LDLIBS += -lrte_eal -lrte_mbuf -lrte_ethdev
13 EXPORT_MAP := rte_distributor_version.map
15 # all source are stored in SRCS-y
16 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) := rte_distributor_single.c
17 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor.c
18 ifeq ($(CONFIG_RTE_ARCH_X86),y)
19 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_sse.c
21 SRCS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += rte_distributor_match_generic.c
25 # install this header file
26 SYMLINK-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR)-include := rte_distributor.h
28 include $(RTE_SDK)/mk/rte.lib.mk