07e1fd0c5cd3856d049da896ca0b3543ccb3686e
[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_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_EVENTDEV) += librte_eventdev
55 DEPDIRS-librte_eventdev := librte_eal
56 DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost
57 DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether
58 DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash
59 DEPDIRS-librte_hash := librte_eal librte_ring
60 DIRS-$(CONFIG_RTE_LIBRTE_EFD) += librte_efd
61 DEPDIRS-librte_efd := librte_eal librte_ring librte_hash
62 DIRS-$(CONFIG_RTE_LIBRTE_LPM) += librte_lpm
63 DEPDIRS-librte_lpm := librte_eal
64 DIRS-$(CONFIG_RTE_LIBRTE_ACL) += librte_acl
65 DEPDIRS-librte_acl := librte_eal
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_ether
70 DEPDIRS-librte_ip_frag += librte_hash
71 DIRS-$(CONFIG_RTE_LIBRTE_JOBSTATS) += librte_jobstats
72 DEPDIRS-librte_jobstats := librte_eal
73 DIRS-$(CONFIG_RTE_LIBRTE_METRICS) += librte_metrics
74 DEPDIRS-librte_metrics := librte_eal
75 DIRS-$(CONFIG_RTE_LIBRTE_BITRATE) += librte_bitratestats
76 DEPDIRS-librte_bitratestats := librte_eal librte_metrics librte_ether
77 DIRS-$(CONFIG_RTE_LIBRTE_LATENCY_STATS) += librte_latencystats
78 DEPDIRS-librte_latencystats := librte_eal librte_metrics librte_ether librte_mbuf
79 DIRS-$(CONFIG_RTE_LIBRTE_POWER) += librte_power
80 DEPDIRS-librte_power := librte_eal
81 DIRS-$(CONFIG_RTE_LIBRTE_METER) += librte_meter
82 DEPDIRS-librte_meter := librte_eal
83 DIRS-$(CONFIG_RTE_LIBRTE_SCHED) += librte_sched
84 DEPDIRS-librte_sched := librte_eal librte_mempool librte_mbuf librte_net
85 DEPDIRS-librte_sched += librte_timer
86 DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs
87 DEPDIRS-librte_kvargs := librte_eal
88 DIRS-$(CONFIG_RTE_LIBRTE_DISTRIBUTOR) += librte_distributor
89 DEPDIRS-librte_distributor := librte_eal librte_mbuf librte_ether
90 DIRS-$(CONFIG_RTE_LIBRTE_PORT) += librte_port
91 DEPDIRS-librte_port := librte_eal librte_mempool librte_mbuf librte_ether
92 DEPDIRS-librte_port += librte_ip_frag librte_sched
93 ifeq ($(CONFIG_RTE_LIBRTE_KNI),y)
94 DEPDIRS-librte_port += librte_kni
95 endif
96 DIRS-$(CONFIG_RTE_LIBRTE_TABLE) += librte_table
97 DEPDIRS-librte_table := librte_eal librte_mempool librte_mbuf
98 DEPDIRS-librte_table += librte_port librte_lpm librte_hash
99 ifeq ($(CONFIG_RTE_LIBRTE_ACL),y)
100 DEPDIRS-librte_table += librte_acl
101 endif
102 DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += librte_pipeline
103 DEPDIRS-librte_pipeline := librte_eal librte_mempool librte_mbuf
104 DEPDIRS-librte_pipeline += librte_table librte_port
105 DIRS-$(CONFIG_RTE_LIBRTE_REORDER) += librte_reorder
106 DEPDIRS-librte_reorder := librte_eal librte_mempool librte_mbuf
107 DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += librte_pdump
108 DEPDIRS-librte_pdump := librte_eal librte_mempool librte_mbuf librte_ether
109
110 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUXAPP),y)
111 DIRS-$(CONFIG_RTE_LIBRTE_KNI) += librte_kni
112 endif
113 DEPDIRS-librte_kni:= librte_eal librte_mempool librte_mbuf librte_ether
114
115 include $(RTE_SDK)/mk/rte.subdir.mk