New upstream version 18.11-rc1
[deb_dpdk.git] / lib / librte_port / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2016 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 #
7 # library name
8 #
9 LIB = librte_port.a
10 ifeq ($(CONFIG_RTE_PORT_PCAP),y)
11 LDLIBS += -lpcap
12 endif
13 LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev
14 LDLIBS += -lrte_ip_frag -lrte_sched -lrte_cryptodev
15 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
16 LDLIBS += -lrte_kni
17 endif
18
19 CFLAGS += -O3
20 CFLAGS += $(WERROR_FLAGS)
21
22 EXPORT_MAP := rte_port_version.map
23
24 LIBABIVER := 3
25
26 #
27 # all source are stored in SRCS-y
28 #
29 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ethdev.c
30 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ring.c
31 ifeq ($(CONFIG_RTE_LIBRTE_IP_FRAG),y)
32 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_frag.c
33 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_ras.c
34 endif
35 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_sched.c
36 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_fd.c
37 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
38 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_kni.c
39 endif
40 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_source_sink.c
41 SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_sym_crypto.c
42
43 # install includes
44 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port.h
45 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ethdev.h
46 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ring.h
47 ifeq ($(CONFIG_RTE_LIBRTE_IP_FRAG),y)
48 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_frag.h
49 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_ras.h
50 endif
51 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_sched.h
52 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_fd.h
53 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
54 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_kni.h
55 endif
56 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_source_sink.h
57 SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_sym_crypto.h
58
59 include $(RTE_SDK)/mk/rte.lib.mk