New upstream version 18.02
[deb_dpdk.git] / lib / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2017 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 DIRS-y += librte_compat
7 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
8 DIRS-$(CONFIG_RTE_LIBRTE_PCI) += librte_pci
9 DEPDIRS-librte_pci := librte_eal
10 DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
11 DEPDIRS-librte_ring := librte_eal
12 DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
13 DEPDIRS-librte_mempool := librte_eal librte_ring
14 DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
15 DEPDIRS-librte_mbuf := librte_eal librte_mempool
16 DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
17 DEPDIRS-librte_timer := librte_eal
18 DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
19 DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
20 DEPDIRS-librte_cmdline := librte_eal
21 DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ether
22 DEPDIRS-librte_ether := librte_net librte_eal librte_mempool librte_ring
23 DEPDIRS-librte_ether += librte_mbuf
24 DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += librte_bbdev
25 DEPDIRS-librte_bbdev := librte_eal librte_mempool librte_mbuf
26 DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
27 DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf
28 DEPDIRS-librte_cryptodev += librte_kvargs
29 DIRS-$(CONFIG_RTE_LIBRTE_SECURITY) += librte_security
30 DEPDIRS-librte_security := librte_eal librte_mempool librte_ring librte_mbuf
31 DEPDIRS-librte_security += librte_ether
32 DEPDIRS-librte_security += librte_cryptodev
33 DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev
34 DEPDIRS-librte_eventdev := librte_eal librte_ring librte_ether librte_hash
35 DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += librte_rawdev
36 DEPDIRS-librte_rawdev := librte_eal librte_ether
37 DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
38 DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether \
39                         librte_net
40 DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
41 DEPDIRS-librte_hash := librte_eal librte_ring
42 DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
43 DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
44 DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
45 DEPDIRS-librte_lpm := librte_eal
46 DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
47 DEPDIRS-librte_acl := librte_eal
48 DIRS-$(CONFIG_RTE_LIBRTE_MEMBER) += librte_member
49 DEPDIRS-librte_member := librte_eal librte_hash
50 DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
51 DEPDIRS-librte_net := librte_mbuf librte_eal
52 DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
53 DEPDIRS-librte_ip_frag := librte_eal librte_mempool librte_mbuf librte_ether
54 DEPDIRS-librte_ip_frag += librte_hash
55 DIRS-$(CONFIG_RTE_LIBRTE_GRO) += librte_gro
56 DEPDIRS-librte_gro := librte_eal librte_mbuf librte_ether librte_net
57 DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
58 DEPDIRS-librte_jobstats := librte_eal
59 DIRS-$(CONFIG_RTE_LIBRTE_METRICS) += librte_metrics
60 DEPDIRS-librte_metrics := librte_eal
61 DIRS-$(CONFIG_RTE_LIBRTE_BITRATE) += librte_bitratestats
62 DEPDIRS-librte_bitratestats := librte_eal librte_metrics librte_ether
63 DIRS-$(CONFIG_RTE_LIBRTE_LATENCY_STATS) += librte_latencystats
64 DEPDIRS-librte_latencystats := librte_eal librte_metrics librte_ether librte_mbuf
65 DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
66 DEPDIRS-librte_power := librte_eal
67 DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
68 DEPDIRS-librte_meter := librte_eal
69 DIRS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += librte_flow_classify
70 DEPDIRS-librte_flow_classify :=  librte_net librte_table librte_acl
71 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
72 DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
73 DEPDIRS-librte_sched += librte_timer
74 DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
75 DEPDIRS-librte_kvargs := librte_eal
76 DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
77 DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ether
78 DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
79 DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ether
80 DEPDIRS-librte_port += librte_ip_frag librte_sched
81 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
82 DEPDIRS-librte_port += librte_kni
83 endif
84 DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
85 DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
86 DEPDIRS-librte_table += librte_port librte_lpm librte_hash
87 ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
88 DEPDIRS-librte_table += librte_acl
89 endif
90 DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
91 DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
92 DEPDIRS-librte_pipeline += librte_table librte_port
93 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
94 DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
95 DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
96 DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ether
97 DIRS-$(CONFIG_RTE_LIBRTE_GSO) += librte_gso
98 DEPDIRS-librte_gso := librte_eal librte_mbuf librte_ether librte_net
99 DEPDIRS-librte_gso += librte_mempool
100
101 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
102 DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
103 endif
104 DEPDIRS-librte_kni := librte_eal librte_mempool librte_mbuf librte_ether
105 DEPDIRS-librte_kni += librte_pci
106
107 include $(RTE_SDK)/mk/rte.subdir.mk