New upstream version 17.11.1
[deb_dpdk.git] / lib / Makefile
1 #   BSD LICENSE
2 #
3 #   Copyright(c) 2010-2017 Intel Corporation. All rights reserved.
4 #   All rights reserved.
5 #
6 #   Redistribution and use in source and binary forms, with or without
7 #   modification, are permitted provided that the following conditions
8 #   are met:
9 #
10 #     * Redistributions of source code must retain the above copyright
11 #       notice, this list of conditions and the following disclaimer.
12 #     * Redistributions in binary form must reproduce the above copyright
13 #       notice, this list of conditions and the following disclaimer in
14 #       the documentation and/or other materials provided with the
15 #       distribution.
16 #     * Neither the name of Intel Corporation nor the names of its
17 #       contributors may be used to endorse or promote products derived
18 #       from this software without specific prior written permission.
19 #
20 #   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 #   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 #   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 #   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 #   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 #   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 #   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 #   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 #   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 include $(RTE_SDK)/mk/rte.vars.mk
33
34 DIRS-y += librte_compat
35 DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal
36 DIRS-$(CONFIG_RTE_LIBRTE_PCI) += librte_pci
37 DEPDIRS-librte_pci := librte_eal
38 DIRS-$(CONFIG_RTE_LIBRTE_RING) += librte_ring
39 DEPDIRS-librte_ring := librte_eal
40 DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
41 DEPDIRS-librte_mempool := librte_eal librte_ring
42 DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
43 DEPDIRS-librte_mbuf := librte_eal librte_mempool
44 DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
45 DEPDIRS-librte_timer := librte_eal
46 DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
47 DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
48 DEPDIRS-librte_cmdline := librte_eal
49 DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ether
50 DEPDIRS-librte_ether := librte_net librte_eal librte_mempool librte_ring
51 DEPDIRS-librte_ether += librte_mbuf
52 DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
53 DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf
54 DEPDIRS-librte_cryptodev += librte_kvargs
55 DIRS-$(CONFIG_RTE_LIBRTE_SECURITY) += librte_security
56 DEPDIRS-librte_security := librte_eal librte_mempool librte_ring librte_mbuf
57 DEPDIRS-librte_security += librte_ether
58 DEPDIRS-librte_security += librte_cryptodev
59 DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev
60 DEPDIRS-librte_eventdev := librte_eal librte_ring librte_ether librte_hash
61 DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
62 DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether
63 DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
64 DEPDIRS-librte_hash := librte_eal librte_ring
65 DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
66 DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
67 DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
68 DEPDIRS-librte_lpm := librte_eal
69 DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
70 DEPDIRS-librte_acl := librte_eal
71 DIRS-$(CONFIG_RTE_LIBRTE_MEMBER) += librte_member
72 DEPDIRS-librte_member := librte_eal librte_hash
73 DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
74 DEPDIRS-librte_net := librte_mbuf librte_eal
75 DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
76 DEPDIRS-librte_ip_frag := librte_eal librte_mempool librte_mbuf librte_ether
77 DEPDIRS-librte_ip_frag += librte_hash
78 DIRS-$(CONFIG_RTE_LIBRTE_GRO) += librte_gro
79 DEPDIRS-librte_gro := librte_eal librte_mbuf librte_ether librte_net
80 DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
81 DEPDIRS-librte_jobstats := librte_eal
82 DIRS-$(CONFIG_RTE_LIBRTE_METRICS) += librte_metrics
83 DEPDIRS-librte_metrics := librte_eal
84 DIRS-$(CONFIG_RTE_LIBRTE_BITRATE) += librte_bitratestats
85 DEPDIRS-librte_bitratestats := librte_eal librte_metrics librte_ether
86 DIRS-$(CONFIG_RTE_LIBRTE_LATENCY_STATS) += librte_latencystats
87 DEPDIRS-librte_latencystats := librte_eal librte_metrics librte_ether librte_mbuf
88 DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
89 DEPDIRS-librte_power := librte_eal
90 DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
91 DEPDIRS-librte_meter := librte_eal
92 DIRS-$(CONFIG_RTE_LIBRTE_FLOW_CLASSIFY) += librte_flow_classify
93 DEPDIRS-librte_flow_classify :=  librte_net librte_table librte_acl
94 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
95 DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
96 DEPDIRS-librte_sched += librte_timer
97 DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
98 DEPDIRS-librte_kvargs := librte_eal
99 DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
100 DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ether
101 DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
102 DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ether
103 DEPDIRS-librte_port += librte_ip_frag librte_sched
104 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
105 DEPDIRS-librte_port += librte_kni
106 endif
107 DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
108 DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
109 DEPDIRS-librte_table += librte_port librte_lpm librte_hash
110 ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
111 DEPDIRS-librte_table += librte_acl
112 endif
113 DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
114 DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
115 DEPDIRS-librte_pipeline += librte_table librte_port
116 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
117 DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
118 DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
119 DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ether
120 DIRS-$(CONFIG_RTE_LIBRTE_GSO) += librte_gso
121 DEPDIRS-librte_gso := librte_eal librte_mbuf librte_ether librte_net
122 DEPDIRS-librte_gso += librte_mempool
123
124 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
125 DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
126 endif
127 DEPDIRS-librte_kni := librte_eal librte_mempool librte_mbuf librte_ether
128 DEPDIRS-librte_kni += librte_pci
129
130 include $(RTE_SDK)/mk/rte.subdir.mk