- added dummy mesh block plugin
[oweals/gnunet.git] / src / mesh / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 pkgcfg_DATA = \
15   mesh.conf
16
17 plugindir = $(libdir)/gnunet
18
19 AM_CLFAGS = -g
20
21 bin_PROGRAMS = \
22  gnunet-service-mesh  gnunet-service-mesh_new
23
24 lib_LTLIBRARIES = \
25   libgnunetmesh.la
26
27 plugin_LTLIBRARIES = \
28  libgnunet_plugin_block_mesh.la
29
30 libgnunet_plugin_block_mesh_la_SOURCES = \
31  plugin_block_mesh.c
32 libgnunet_plugin_block_mesh_la_LIBADD = \
33  $(top_builddir)/src/block/libgnunetblock.la \
34  $(top_builddir)/src/util/libgnunetutil.la
35 libgnunet_plugin_block_mesh_la_LDFLAGS = \
36  $(GN_PLUGIN_LDFLAGS)
37 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
38  $(top_builddir)/src/block/libgnunetblock.la
39
40
41 gnunet_service_mesh_SOURCES = \
42  gnunet-service-mesh.c \
43  mesh_tunnel_tree.c mesh_tunnel_tree.h
44 gnunet_service_mesh_LDADD = \
45   $(top_builddir)/src/core/libgnunetcore.la \
46   $(top_builddir)/src/dht/libgnunetdht.la \
47   $(top_builddir)/src/block/libgnunetblock.la \
48   $(top_builddir)/src/util/libgnunetutil.la
49  gnunet_service_mesh_DEPENDENCIES = \
50   $(top_builddir)/src/core/libgnunetcore.la\
51   $(top_builddir)/src/dht/libgnunetdht.la \
52   $(top_builddir)/src/util/libgnunetutil.la
53
54 gnunet_service_mesh_new_SOURCES = \
55  gnunet-service-mesh_new.c \
56  mesh_tunnel_tree.c mesh_tunnel_tree.h
57 gnunet_service_mesh_new_LDADD = \
58   $(top_builddir)/src/core/libgnunetcore.la\
59   $(top_builddir)/src/dht/libgnunetdht.la \
60   $(top_builddir)/src/util/libgnunetutil.la
61  gnunet_service_mesh_new_DEPENDENCIES = \
62   $(top_builddir)/src/core/libgnunetcore.la\
63   $(top_builddir)/src/dht/libgnunetdht.la \
64   $(top_builddir)/src/util/libgnunetutil.la
65
66 libgnunetmesh_la_SOURCES = \
67   mesh_api.c mesh.h mesh_protocol.h
68 libgnunetmesh_la_LIBADD = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(XLIB) \
71   $(LTLIBINTL)
72 libgnunetmesh_la_LDFLAGS = \
73   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
74   -version-info 1:0:0
75
76 check_PROGRAMS = \
77  test_mesh_api \
78  test_mesh_tree_api \
79  test_mesh_local_1 \
80  test_mesh_local_2 \
81  test_mesh_2dtorus \
82  test_mesh_small_unicast \
83  test_mesh_small_multicast \
84  test_mesh_small_speed \
85  test_mesh_small_speed_ack
86
87 test_mesh_api_SOURCES = \
88  test_mesh_api.c
89 test_mesh_api_LDADD = \
90  $(top_builddir)/src/util/libgnunetutil.la \
91  $(top_builddir)/src/mesh/libgnunetmesh.la
92 test_mesh_api_DEPENDENCIES = \
93   libgnunetmesh.la \
94    $(top_builddir)/src/util/libgnunetutil.la
95
96 test_mesh_tree_api_SOURCES = \
97  test_mesh_tree_api.c
98 test_mesh_tree_api_LDADD = \
99  $(top_builddir)/src/util/libgnunetutil.la \
100   $(top_builddir)/src/dht/libgnunetdht.la
101 test_mesh_tree_api_DEPENDENCIES = \
102   libgnunetmesh.la \
103   $(top_builddir)/src/dht/libgnunetdht.la
104
105 test_mesh_local_1_SOURCES = \
106  test_mesh_local_1.c
107 test_mesh_local_1_LDADD = \
108  $(top_builddir)/src/util/libgnunetutil.la \
109  $(top_builddir)/src/mesh/libgnunetmesh.la
110 test_mesh_local_1_DEPENDENCIES = \
111   libgnunetmesh.la
112
113 test_mesh_local_2_SOURCES = \
114  test_mesh_local_2.c
115 test_mesh_local_2_LDADD = \
116  $(top_builddir)/src/util/libgnunetutil.la \
117  $(top_builddir)/src/mesh/libgnunetmesh.la
118 test_mesh_local_2_DEPENDENCIES = \
119   libgnunetmesh.la
120
121 test_mesh_2dtorus_SOURCES = \
122  test_mesh_2dtorus.c
123 test_mesh_2dtorus_LDADD = \
124   $(top_builddir)/src/util/libgnunetutil.la \
125   $(top_builddir)/src/testing_old/libgnunettesting_old.la
126
127 test_mesh_small_unicast_SOURCES = \
128  test_mesh_small.c
129 test_mesh_small_unicast_LDADD = \
130   $(top_builddir)/src/mesh/libgnunetmesh.la \
131   $(top_builddir)/src/util/libgnunetutil.la \
132   $(top_builddir)/src/testing_old/libgnunettesting_old.la
133 test_mesh_small_unicast_DEPENDENCIES = \
134   libgnunetmesh.la
135
136 test_mesh_small_multicast_SOURCES = \
137  test_mesh_small.c
138 test_mesh_small_multicast_LDADD = \
139   $(top_builddir)/src/mesh/libgnunetmesh.la \
140   $(top_builddir)/src/util/libgnunetutil.la \
141   $(top_builddir)/src/testing_old/libgnunettesting_old.la
142 test_mesh_small_multicast_DEPENDENCIES = \
143   libgnunetmesh.la
144
145 test_mesh_small_speed_SOURCES = \
146  test_mesh_small.c
147 test_mesh_small_speed_LDADD = \
148   $(top_builddir)/src/mesh/libgnunetmesh.la \
149   $(top_builddir)/src/util/libgnunetutil.la \
150   $(top_builddir)/src/testing_old/libgnunettesting_old.la
151 test_mesh_small_speed_DEPENDENCIES = \
152   libgnunetmesh.la
153
154 test_mesh_small_speed_ack_SOURCES = \
155  test_mesh_small.c
156 test_mesh_small_speed_ack_LDADD = \
157   $(top_builddir)/src/mesh/libgnunetmesh.la \
158   $(top_builddir)/src/util/libgnunetutil.la \
159   $(top_builddir)/src/testing_old/libgnunettesting_old.la
160 test_mesh_small_speed_ack_DEPENDENCIES = \
161   libgnunetmesh.la
162
163 if ENABLE_TEST_RUN
164 TESTS = test_mesh_api test_mesh_tree_api test_mesh_local_1 test_mesh_local_2 \
165  test_mesh_2dtorus test_mesh_small_unicast test_mesh_small_multicast
166 endif
167
168 EXTRA_DIST = \
169   test_mesh.conf \
170   test_mesh_2dtorus.conf \
171   test_mesh_small.conf \
172   test_mesh_path.conf