1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2016 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
10 ifeq ($(CONFIG_RTE_PORT_PCAP),y)
13 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev
14 LDLIBS += -lrte_ip_frag -lrte_sched -lrte_cryptodev -lrte_eventdev
15 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
20 CFLAGS += $(WERROR_FLAGS)
22 EXPORT_MAP := rte_port_version.map
25 # all source are stored in SRCS-y
27 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ethdev.c
28 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ring.c
29 ifeq ($(CONFIG_RTE_LIBRTE_IP_FRAG),y)
30 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_frag.c
31 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ras.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_sched.c
34 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_fd.c
35 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
36 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_kni.c
38 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_source_sink.c
39 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_sym_crypto.c
40 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_eventdev.c
43 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port.h
44 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ethdev.h
45 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ring.h
46 ifeq ($(CONFIG_RTE_LIBRTE_IP_FRAG),y)
47 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_frag.h
48 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ras.h
50 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_sched.h
51 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_fd.h
52 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
53 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_kni.h
55 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_source_sink.h
56 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_sym_crypto.h
57 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_eventdev.h
59 include $(RTE_SDK)/mk/rte.lib.mk