5c269e65c35f03c6d4c66861b4f1db1bd0a47364
[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-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
7 DIRS-y += librte_telemetry
8 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
9 DEPDIRS-librte_eal := librte_kvargs librte_telemetry
10 DIRS-$(CONFIG_RTE_LIBRTE_PCI) += librte_pci
11 DEPDIRS-librte_pci := librte_eal
12 DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
13 DEPDIRS-librte_ring := librte_eal
14 DIRS-$(CONFIG_RTE_LIBRTE_STACK) += librte_stack
15 DEPDIRS-librte_stack := librte_eal
16 DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
17 DEPDIRS-librte_mempool := librte_eal librte_ring
18 DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
19 DEPDIRS-librte_mbuf := librte_eal librte_mempool
20 DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
21 DEPDIRS-librte_timer := librte_eal
22 DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
23 DEPDIRS-librte_cfgfile := librte_eal
24 DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
25 DEPDIRS-librte_cmdline := librte_eal librte_net
26 DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ethdev
27 DEPDIRS-librte_ethdev := librte_net librte_eal librte_mempool librte_ring
28 DEPDIRS-librte_ethdev += librte_mbuf
29 DEPDIRS-librte_ethdev += librte_kvargs
30 DEPDIRS-librte_ethdev += librte_meter
31 DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += librte_bbdev
32 DEPDIRS-librte_bbdev := librte_eal librte_mempool librte_mbuf
33 DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
34 DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf
35 DEPDIRS-librte_cryptodev += librte_kvargs
36 DIRS-$(CONFIG_RTE_LIBRTE_SECURITY) += librte_security
37 DEPDIRS-librte_security := librte_eal librte_mempool librte_ring librte_mbuf
38 DEPDIRS-librte_security += librte_ethdev
39 DEPDIRS-librte_security += librte_cryptodev
40 DIRS-$(CONFIG_RTE_LIBRTE_COMPRESSDEV) += librte_compressdev
41 DEPDIRS-librte_compressdev := librte_eal librte_mempool librte_ring librte_mbuf
42 DEPDIRS-librte_compressdev += librte_kvargs
43 DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev
44 DEPDIRS-librte_eventdev := librte_eal librte_ring librte_ethdev librte_hash \
45                            librte_mempool librte_timer librte_cryptodev
46 DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += librte_rawdev
47 DEPDIRS-librte_rawdev := librte_eal librte_ethdev
48 DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
49 DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ethdev \
50                         librte_net librte_hash librte_cryptodev \
51                         librte_pci
52 DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
53 DEPDIRS-librte_hash := librte_eal librte_ring
54 DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
55 DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
56 DIRS-$(CONFIG_RTE_LIBRTE_RIB) += librte_rib
57 DEPDIRS-librte_rib := librte_eal librte_mempool
58 DIRS-$(CONFIG_RTE_LIBRTE_FIB) += librte_fib
59 DEPDIRS-librte_fib := librte_eal librte_rib
60 DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
61 DEPDIRS-librte_lpm := librte_eal librte_hash
62 DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
63 DEPDIRS-librte_acl := librte_eal
64 DIRS-$(CONFIG_RTE_LIBRTE_MEMBER) += librte_member
65 DEPDIRS-librte_member := librte_eal librte_hash
66 DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
67 DEPDIRS-librte_net := librte_mbuf librte_eal
68 DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
69 DEPDIRS-librte_ip_frag := librte_eal librte_mempool librte_mbuf librte_ethdev
70 DEPDIRS-librte_ip_frag += librte_hash
71 DIRS-$(CONFIG_RTE_LIBRTE_GRO) += librte_gro
72 DEPDIRS-librte_gro := librte_eal librte_mbuf librte_ethdev librte_net
73 DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
74 DEPDIRS-librte_jobstats := librte_eal
75 DIRS-$(CONFIG_RTE_LIBRTE_METRICS) += librte_metrics
76 DEPDIRS-librte_metrics := librte_eal librte_ethdev
77 ifeq ($(CONFIG_RTE_LIBRTE_TELEMETRY),y)
78 DEPDIRS-librte_metrics += librte_telemetry
79 endif
80 DIRS-$(CONFIG_RTE_LIBRTE_BITRATE) += librte_bitratestats
81 DEPDIRS-librte_bitratestats := librte_eal librte_metrics librte_ethdev
82 DIRS-$(CONFIG_RTE_LIBRTE_LATENCY_STATS) += librte_latencystats
83 DEPDIRS-librte_latencystats := librte_eal librte_metrics librte_ethdev librte_mbuf
84 DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
85 DEPDIRS-librte_power := librte_eal librte_timer
86 DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
87 DEPDIRS-librte_meter := librte_eal
88 DIRS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += librte_flow_classify
89 DEPDIRS-librte_flow_classify :=  librte_net librte_table librte_acl
90 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
91 DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
92 DEPDIRS-librte_sched += librte_timer
93 DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
94 DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ethdev
95 DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
96 DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ethdev
97 DEPDIRS-librte_port += librte_ip_frag librte_sched librte_eventdev
98 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
99 DEPDIRS-librte_port += librte_kni
100 endif
101 DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
102 DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
103 DEPDIRS-librte_table += librte_port librte_lpm librte_hash
104 ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
105 DEPDIRS-librte_table += librte_acl
106 endif
107 DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
108 DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
109 DEPDIRS-librte_pipeline += librte_table librte_port
110 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
111 DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
112 DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
113 DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ethdev
114 DIRS-$(CONFIG_RTE_LIBRTE_GSO) += librte_gso
115 DEPDIRS-librte_gso := librte_eal librte_mbuf librte_ethdev librte_net
116 DEPDIRS-librte_gso += librte_mempool
117 DIRS-$(CONFIG_RTE_LIBRTE_BPF) += librte_bpf
118 DEPDIRS-librte_bpf := librte_eal librte_mempool librte_mbuf librte_ethdev
119 DIRS-$(CONFIG_RTE_LIBRTE_IPSEC) += librte_ipsec
120 DEPDIRS-librte_ipsec := librte_eal librte_mbuf librte_cryptodev librte_security \
121                         librte_net librte_hash
122 DIRS-$(CONFIG_RTE_LIBRTE_RCU) += librte_rcu
123 DEPDIRS-librte_rcu := librte_eal librte_ring
124
125 DIRS-$(CONFIG_RTE_LIBRTE_GRAPH) += librte_graph
126 DEPDIRS-librte_graph := librte_eal
127
128 DIRS-$(CONFIG_RTE_LIBRTE_NODE) += librte_node
129 DEPDIRS-librte_node := librte_graph librte_lpm librte_ethdev librte_mbuf
130
131 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
132 DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
133 endif
134 DEPDIRS-librte_kni := librte_eal librte_mempool librte_mbuf librte_ethdev
135 DEPDIRS-librte_kni += librte_pci
136
137 include $(RTE_SDK)/mk/rte.subdir.mk