mk: optimize directory dependencies
[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_RING) += librte_ring
37 DEPDIRS-librte_ring := librte_eal
38 DIRS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += librte_mempool
39 DEPDIRS-librte_mempool := librte_eal librte_ring
40 DIRS-$(CONFIG_RTE_LIBRTE_MBUF) += librte_mbuf
41 DEPDIRS-librte_mbuf := librte_eal librte_mempool
42 DIRS-$(CONFIG_RTE_LIBRTE_TIMER) += librte_timer
43 DEPDIRS-librte_timer := librte_eal
44 DIRS-$(CONFIG_RTE_LIBRTE_CFGFILE) += librte_cfgfile
45 DEPDIRS-librte_cfgfile := librte_eal
46 DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += librte_cmdline
47 DEPDIRS-librte_cmdline := librte_eal
48 DIRS-$(CONFIG_RTE_LIBRTE_ETHER) += librte_ether
49 DEPDIRS-librte_ether := librte_net librte_eal librte_mempool librte_ring
50 DEPDIRS-librte_ether += librte_mbuf
51 DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev
52 DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf
53 DEPDIRS-librte_cryptodev += librte_kvargs
54 DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
55 DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether
56 DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
57 DEPDIRS-librte_hash := librte_eal librte_ring
58 DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
59 DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
60 DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
61 DEPDIRS-librte_lpm := librte_eal
62 DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
63 DEPDIRS-librte_acl := librte_eal
64 DIRS-$(CONFIG_RTE_LIBRTE_NET) += librte_net
65 DEPDIRS-librte_net := librte_mbuf
66 DIRS-$(CONFIG_RTE_LIBRTE_IP_FRAG) += librte_ip_frag
67 DEPDIRS-librte_ip_frag := librte_eal librte_mempool librte_mbuf librte_ether
68 DEPDIRS-librte_ip_frag += librte_hash
69 DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
70 DEPDIRS-librte_jobstats := librte_eal
71 DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
72 DEPDIRS-librte_power := librte_eal
73 DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
74 DEPDIRS-librte_meter := librte_eal
75 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
76 DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
77 DEPDIRS-librte_sched += librte_timer
78 DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
79 DEPDIRS-librte_kvargs := librte_eal
80 DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
81 DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ether
82 DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
83 DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ether
84 DEPDIRS-librte_port += librte_ip_frag librte_sched librte_kni
85 DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
86 DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
87 DEPDIRS-librte_table += librte_port librte_lpm librte_acl librte_hash
88 DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
89 DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
90 DEPDIRS-librte_pipeline += librte_table librte_port
91 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
92 DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
93 DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
94 DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ether
95
96 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
97 DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
98 endif
99 DEPDIRS-librte_kni:= librte_eal librte_mempool librte_mbuf librte_ether
100
101 include $(RTE_SDK)/mk/rte.subdir.mk