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