- validate client generated PIDs
[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
23
24 lib_LTLIBRARIES = \
25   libgnunetmesh.la \
26   libgnunetmeshblock.la
27
28 plugin_LTLIBRARIES = \
29  libgnunet_plugin_block_mesh.la
30
31 libgnunet_plugin_block_mesh_la_SOURCES = \
32  plugin_block_mesh.c
33 libgnunet_plugin_block_mesh_la_LIBADD = \
34  $(top_builddir)/src/mesh/libgnunetmeshblock.la \
35  $(top_builddir)/src/block/libgnunetblock.la \
36  $(top_builddir)/src/util/libgnunetutil.la
37 libgnunet_plugin_block_mesh_la_LDFLAGS = \
38  $(GN_PLUGIN_LDFLAGS)
39 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
40  libgnunetmeshblock.la \
41  $(top_builddir)/src/block/libgnunetblock.la \
42  $(top_builddir)/src/util/libgnunetutil.la
43
44 libgnunetmesh_la_SOURCES = \
45   mesh_api.c mesh.h mesh_protocol.h
46 libgnunetmesh_la_LIBADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(XLIB) \
49   $(LTLIBINTL)
50 libgnunetmesh_la_LDFLAGS = \
51   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
52   -version-info 1:0:0
53
54 libgnunetmeshblock_la_SOURCES = \
55   mesh_block_lib.c
56 libgnunetmeshblock_la_LIBADD = \
57   $(top_builddir)/src/util/libgnunetutil.la \
58   $(XLIB) \
59   $(LTLIBINTL)
60 libgnunetmeshblock_la_LDFLAGS = \
61   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
62   -version-info 1:0:0
63
64 gnunet_service_mesh_SOURCES = \
65  gnunet-service-mesh.c \
66  mesh_tunnel_tree.c mesh_tunnel_tree.h
67 gnunet_service_mesh_LDADD = \
68   $(top_builddir)/src/util/libgnunetutil.la \
69   $(top_builddir)/src/core/libgnunetcore.la \
70   $(top_builddir)/src/dht/libgnunetdht.la \
71   $(top_builddir)/src/statistics/libgnunetstatistics.la \
72   $(top_builddir)/src/block/libgnunetblock.la \
73   $(top_builddir)/src/mesh/libgnunetmeshblock.la \
74   $(top_builddir)/src/regex/libgnunetregex.la
75 gnunet_service_mesh_DEPENDENCIES = \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(top_builddir)/src/core/libgnunetcore.la \
78   $(top_builddir)/src/dht/libgnunetdht.la \
79   $(top_builddir)/src/statistics/libgnunetstatistics.la \
80   $(top_builddir)/src/block/libgnunetblock.la \
81   libgnunetmeshblock.la \
82   $(top_builddir)/src/regex/libgnunetregex.la
83
84 check_PROGRAMS = \
85  test_mesh_api \
86  test_mesh_tree_api \
87  test_mesh_local_1 \
88  test_mesh_local_2 \
89  test_mesh_local_traffic \
90  test_mesh_2dtorus \
91  test_mesh_regex \
92  test_mesh_small_unicast \
93  test_mesh_small_multicast \
94  test_mesh_small_speed \
95  test_mesh_small_speed_ack
96
97 test_mesh_api_SOURCES = \
98  test_mesh_api.c
99 test_mesh_api_LDADD = \
100  $(top_builddir)/src/util/libgnunetutil.la \
101  $(top_builddir)/src/testing/libgnunettesting.la \
102  $(top_builddir)/src/mesh/libgnunetmesh.la
103 test_mesh_api_DEPENDENCIES = \
104   libgnunetmesh.la \
105    $(top_builddir)/src/util/libgnunetutil.la
106
107 test_mesh_tree_api_SOURCES = \
108  test_mesh_tree_api.c
109 test_mesh_tree_api_LDADD = \
110  $(top_builddir)/src/util/libgnunetutil.la \
111  $(top_builddir)/src/dht/libgnunetdht.la
112 test_mesh_tree_api_DEPENDENCIES = \
113   libgnunetmesh.la \
114   $(top_builddir)/src/dht/libgnunetdht.la
115
116 test_mesh_local_1_SOURCES = \
117  test_mesh_local_1.c
118 test_mesh_local_1_LDADD = \
119  $(top_builddir)/src/util/libgnunetutil.la \
120  $(top_builddir)/src/testing/libgnunettesting.la \
121  $(top_builddir)/src/mesh/libgnunetmesh.la
122 test_mesh_local_1_DEPENDENCIES = \
123   libgnunetmesh.la
124
125 test_mesh_local_2_SOURCES = \
126  test_mesh_local_2.c
127 test_mesh_local_2_LDADD = \
128  $(top_builddir)/src/util/libgnunetutil.la \
129  $(top_builddir)/src/testing/libgnunettesting.la \
130  $(top_builddir)/src/mesh/libgnunetmesh.la
131 test_mesh_local_2_DEPENDENCIES = \
132   libgnunetmesh.la
133
134 test_mesh_local_traffic_SOURCES = \
135  test_mesh_local_traffic.c
136 test_mesh_local_traffic_LDADD = \
137  $(top_builddir)/src/util/libgnunetutil.la \
138  $(top_builddir)/src/testing/libgnunettesting.la \
139  $(top_builddir)/src/mesh/libgnunetmesh.la
140 test_mesh_local_traffic_DEPENDENCIES = \
141   libgnunetmesh.la
142
143
144 test_mesh_2dtorus_SOURCES = \
145  test_mesh_2dtorus.c
146 test_mesh_2dtorus_LDADD = \
147   $(top_builddir)/src/util/libgnunetutil.la \
148   $(top_builddir)/src/testing_old/libgnunettesting_old.la
149
150 test_mesh_regex_SOURCES = \
151  test_mesh_regex.c
152 test_mesh_regex_LDADD = \
153   $(top_builddir)/src/mesh/libgnunetmesh.la \
154   $(top_builddir)/src/util/libgnunetutil.la \
155   $(top_builddir)/src/testing_old/libgnunettesting_old.la
156 test_mesh_regex_DEPENDENCIES = \
157   libgnunetmesh.la
158
159
160 test_mesh_small_unicast_SOURCES = \
161  test_mesh_small.c
162 test_mesh_small_unicast_LDADD = \
163   $(top_builddir)/src/mesh/libgnunetmesh.la \
164   $(top_builddir)/src/util/libgnunetutil.la \
165   $(top_builddir)/src/testing_old/libgnunettesting_old.la
166 test_mesh_small_unicast_DEPENDENCIES = \
167   libgnunetmesh.la
168
169 test_mesh_small_multicast_SOURCES = \
170  test_mesh_small.c
171 test_mesh_small_multicast_LDADD = \
172   $(top_builddir)/src/mesh/libgnunetmesh.la \
173   $(top_builddir)/src/util/libgnunetutil.la \
174   $(top_builddir)/src/testing_old/libgnunettesting_old.la
175 test_mesh_small_multicast_DEPENDENCIES = \
176   libgnunetmesh.la
177
178 test_mesh_small_speed_SOURCES = \
179  test_mesh_small.c
180 test_mesh_small_speed_LDADD = \
181   $(top_builddir)/src/mesh/libgnunetmesh.la \
182   $(top_builddir)/src/util/libgnunetutil.la \
183   $(top_builddir)/src/testing_old/libgnunettesting_old.la
184 test_mesh_small_speed_DEPENDENCIES = \
185   libgnunetmesh.la
186
187 test_mesh_small_speed_ack_SOURCES = \
188  test_mesh_small.c
189 test_mesh_small_speed_ack_LDADD = \
190   $(top_builddir)/src/mesh/libgnunetmesh.la \
191   $(top_builddir)/src/util/libgnunetutil.la \
192   $(top_builddir)/src/testing_old/libgnunettesting_old.la
193 test_mesh_small_speed_ack_DEPENDENCIES = \
194   libgnunetmesh.la
195
196 if ENABLE_TEST_RUN
197 TESTS = test_mesh_api \
198  test_mesh_tree_api \
199  test_mesh_local_1 test_mesh_local_2 \
200  test_mesh_2dtorus test_mesh_regex \
201  test_mesh_small_unicast test_mesh_small_multicast
202 endif
203
204 EXTRA_DIST = \
205   test_mesh.conf \
206   test_mesh_2dtorus.conf \
207   test_mesh_small.conf \
208   test_mesh_path.conf