dhtlog updates
[oweals/gnunet.git] / src / util / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6 noinst_LTLIBRARIES = \
7   libgnunetutilwin.la
8 libgnunetutilwin_la_SOURCES = \
9   win.cc \
10   winproc.c
11 libgnunetutilwin_la_LDFLAGS = \
12   -Wl,--no-undefined -Wl,--export-all-symbols 
13 libgnunetutilwin_la_LIBADD = \
14   -lshell32 -liconv -lstdc++ \
15   -lcomdlg32 -lgdi32
16 WINLIB = libgnunetutilwin.la
17 endif
18
19 if USE_COVERAGE
20   AM_CFLAGS = --coverage -O0
21   XLIB = -lgcov
22 endif
23
24 lib_LTLIBRARIES = libgnunetutil.la
25
26 libgnunetutil_la_SOURCES = \
27   bandwidth.c \
28   bio.c \
29   client.c \
30   common_allocation.c \
31   common_endian.c \
32   common_logging.c \
33   configuration.c \
34   connection.c \
35   container_bloomfilter.c \
36   container_heap.c \
37   container_meta_data.c \
38   container_multihashmap.c \
39   container_slist.c \
40   crypto_aes.c \
41   crypto_crc.c \
42   crypto_hash.c \
43   crypto_hkdf.c \
44   crypto_ksk.c \
45   crypto_random.c \
46   crypto_rsa.c \
47   disk.c \
48   disk.h \
49   getopt.c \
50   getopt_helpers.c \
51   network.c \
52   os_installation.c \
53   os_load.c \
54   os_network.c \
55   os_priority.c \
56   peer.c \
57   plugin.c \
58   program.c \
59   pseudonym.c \
60   resolver_api.c resolver.h \
61   scheduler.c \
62   server.c \
63   server_mst.c \
64   server_nc.c \
65   server_tc.c \
66   service.c \
67   signal.c \
68   strings.c \
69   time.c
70
71
72 libgnunetutil_la_LIBADD = \
73   $(GCLIBADD) $(WINLIB) \
74   $(LIBGCRYPT_LIBS) \
75   $(LTLIBICONV) \
76   -lgmp -lltdl -lz $(XLIB)
77
78 libgnunetutil_la_LDFLAGS = \
79   $(GN_LIB_LDFLAGS) \
80   -version-info 4:0:0
81
82
83 bin_PROGRAMS = \
84  gnunet-service-resolver
85
86 gnunet_service_resolver_SOURCES = \
87  gnunet-service-resolver.c         
88 gnunet_service_resolver_LDADD = \
89   $(top_builddir)/src/util/libgnunetutil.la \
90   $(GN_LIBINTL)
91
92
93 plugin_LTLIBRARIES = \
94   libgnunet_plugin_test.la
95
96 libgnunet_plugin_test_la_SOURCES = \
97   test_plugin_plug.c
98 libgnunet_plugin_test_la_LDFLAGS = \
99  $(GN_PLUGIN_LDFLAGS)
100
101 check_PROGRAMS = \
102  test_bio \
103  test_client \
104  test_common_allocation \
105  test_common_endian \
106  test_common_logging \
107  test_configuration \
108  test_container_bloomfilter \
109  test_container_meta_data \
110  test_container_multihashmap \
111  test_container_heap \
112  test_container_slist \
113  test_crypto_aes \
114  test_crypto_aes_weak \
115  test_crypto_crc \
116  test_crypto_hash \
117  test_crypto_hkdf \
118  test_crypto_ksk \
119  test_crypto_random \
120  test_crypto_rsa \
121  test_disk \
122  test_getopt \
123  test_connection \
124  test_connection_addressing \
125  test_connection_receive_cancel \
126  test_connection_timeout \
127  test_connection_timeout_no_connect \
128  test_connection_transmit_cancel \
129  test_os_load \
130  test_os_network \
131  test_os_priority \
132  test_peer \
133  test_plugin \
134  test_program \
135  test_pseudonym \
136  test_resolver_api \
137  test_scheduler \
138  test_scheduler_delay \
139  test_server \
140  test_server_disconnect \
141  test_server_with_client \
142  test_service \
143  test_strings \
144  test_time \
145  perf_crypto_hash \
146  test_os_start_process 
147
148 if !DISABLE_TEST_RUN
149 TESTS = $(check_PROGRAMS)
150 endif
151
152 test_bio_SOURCES = \
153  test_bio.c
154 test_bio_LDADD = \
155  $(top_builddir)/src/util/libgnunetutil.la
156
157
158 test_os_start_process_SOURCES = \
159  test_os_start_process.c
160 test_os_start_process_LDADD = \
161  $(top_builddir)/src/util/libgnunetutil.la
162
163 test_client_SOURCES = \
164  test_client.c
165 test_client_LDADD = \
166  $(top_builddir)/src/util/libgnunetutil.la  
167
168 test_common_allocation_SOURCES = \
169  test_common_allocation.c
170 test_common_allocation_LDADD = \
171  $(top_builddir)/src/util/libgnunetutil.la  
172
173 test_common_endian_SOURCES = \
174  test_common_endian.c
175 test_common_endian_LDADD = \
176  $(top_builddir)/src/util/libgnunetutil.la  
177
178 test_common_logging_SOURCES = \
179  test_common_logging.c
180 test_common_logging_LDADD = \
181  $(top_builddir)/src/util/libgnunetutil.la  
182
183 test_configuration_SOURCES = \
184  test_configuration.c
185 test_configuration_LDADD = \
186  $(top_builddir)/src/util/libgnunetutil.la  
187
188 test_container_bloomfilter_SOURCES = \
189  test_container_bloomfilter.c
190 test_container_bloomfilter_LDADD = \
191  $(top_builddir)/src/util/libgnunetutil.la  
192
193 test_container_meta_data_SOURCES = \
194  test_container_meta_data.c
195 test_container_meta_data_LDADD = \
196  $(top_builddir)/src/util/libgnunetutil.la -lextractor
197
198 test_container_multihashmap_SOURCES = \
199  test_container_multihashmap.c
200 test_container_multihashmap_LDADD = \
201  $(top_builddir)/src/util/libgnunetutil.la  
202
203 test_container_heap_SOURCES = \
204  test_container_heap.c
205 test_container_heap_LDADD = \
206  $(top_builddir)/src/util/libgnunetutil.la   
207
208 test_container_slist_SOURCES = \
209  test_container_slist.c
210 test_container_slist_LDADD = \
211  $(top_builddir)/src/util/libgnunetutil.la  
212
213 test_crypto_aes_SOURCES = \
214  test_crypto_aes.c
215 test_crypto_aes_LDADD = \
216  $(top_builddir)/src/util/libgnunetutil.la  
217
218 test_crypto_aes_weak_SOURCES = \
219  test_crypto_aes_weak.c
220 test_crypto_aes_weak_LDADD = \
221  $(top_builddir)/src/util/libgnunetutil.la  
222
223 test_crypto_crc_SOURCES = \
224  test_crypto_crc.c
225 test_crypto_crc_LDADD = \
226  $(top_builddir)/src/util/libgnunetutil.la  
227
228 test_crypto_hash_SOURCES = \
229  test_crypto_hash.c
230 test_crypto_hash_LDADD = \
231  $(top_builddir)/src/util/libgnunetutil.la  
232
233 test_crypto_hkdf_SOURCES = \
234  test_crypto_hkdf.c
235 test_crypto_hkdf_LDADD = \
236  $(top_builddir)/src/util/libgnunetutil.la  
237
238 test_crypto_ksk_SOURCES = \
239  test_crypto_ksk.c
240 test_crypto_ksk_LDADD = \
241  $(top_builddir)/src/util/libgnunetutil.la  
242
243 test_crypto_random_SOURCES = \
244  test_crypto_random.c
245 test_crypto_random_LDADD = \
246  $(top_builddir)/src/util/libgnunetutil.la  
247
248 test_crypto_rsa_SOURCES = \
249  test_crypto_rsa.c
250 test_crypto_rsa_LDADD = \
251  $(top_builddir)/src/util/libgnunetutil.la  
252
253 test_disk_SOURCES = \
254  test_disk.c
255 test_disk_LDADD = \
256  $(top_builddir)/src/util/libgnunetutil.la  
257
258 test_getopt_SOURCES = \
259  test_getopt.c
260 test_getopt_LDADD = \
261  $(top_builddir)/src/util/libgnunetutil.la  
262
263 test_connection_SOURCES = \
264  test_connection.c
265 test_connection_LDADD = \
266  $(top_builddir)/src/util/libgnunetutil.la  
267
268 test_connection_addressing_SOURCES = \
269  test_connection_addressing.c
270 test_connection_addressing_LDADD = \
271  $(top_builddir)/src/util/libgnunetutil.la  
272
273 test_connection_receive_cancel_SOURCES = \
274  test_connection_receive_cancel.c
275 test_connection_receive_cancel_LDADD = \
276  $(top_builddir)/src/util/libgnunetutil.la  
277
278 test_connection_timeout_SOURCES = \
279  test_connection_timeout.c
280 test_connection_timeout_LDADD = \
281  $(top_builddir)/src/util/libgnunetutil.la  
282
283 test_connection_timeout_no_connect_SOURCES = \
284  test_connection_timeout_no_connect.c
285 test_connection_timeout_no_connect_LDADD = \
286  $(top_builddir)/src/util/libgnunetutil.la  
287
288 test_connection_transmit_cancel_SOURCES = \
289  test_connection_transmit_cancel.c
290 test_connection_transmit_cancel_LDADD = \
291  $(top_builddir)/src/util/libgnunetutil.la  
292
293 test_os_load_SOURCES = \
294  test_os_load.c
295 test_os_load_LDADD = \
296  $(top_builddir)/src/util/libgnunetutil.la  
297
298 test_os_network_SOURCES = \
299  test_os_network.c
300 test_os_network_LDADD = \
301  $(top_builddir)/src/util/libgnunetutil.la  
302
303 test_os_priority_SOURCES = \
304  test_os_priority.c
305 test_os_priority_LDADD = \
306  $(top_builddir)/src/util/libgnunetutil.la  
307
308 test_peer_SOURCES = \
309  test_peer.c
310 test_peer_LDADD = \
311 $(top_builddir)/src/util/libgnunetutil.la
312
313 test_plugin_SOURCES = \
314  test_plugin.c
315 test_plugin_LDADD = \
316  $(top_builddir)/src/util/libgnunetutil.la  
317
318 test_program_SOURCES = \
319  test_program.c
320 test_program_LDADD = \
321  $(top_builddir)/src/util/libgnunetutil.la  
322
323 test_pseudonym_SOURCES = \
324  test_pseudonym.c
325 test_pseudonym_LDADD = \
326  $(top_builddir)/src/util/libgnunetutil.la  
327
328 test_resolver_api_SOURCES = \
329  test_resolver_api.c
330 test_resolver_api_LDADD = \
331   $(top_builddir)/src/util/libgnunetutil.la  
332
333 test_scheduler_SOURCES = \
334  test_scheduler.c
335 test_scheduler_LDADD = \
336  $(top_builddir)/src/util/libgnunetutil.la  
337
338 test_scheduler_delay_SOURCES = \
339  test_scheduler_delay.c
340 test_scheduler_delay_LDADD = \
341  $(top_builddir)/src/util/libgnunetutil.la  
342
343 test_server_SOURCES = \
344  test_server.c
345 test_server_LDADD = \
346  $(top_builddir)/src/util/libgnunetutil.la  
347
348 test_server_disconnect_SOURCES = \
349  test_server_disconnect.c
350 test_server_disconnect_LDADD = \
351  $(top_builddir)/src/util/libgnunetutil.la  
352
353 test_server_with_client_SOURCES = \
354  test_server_with_client.c
355 test_server_with_client_LDADD = \
356  $(top_builddir)/src/util/libgnunetutil.la  
357
358 test_service_SOURCES = \
359  test_service.c
360 test_service_LDADD = \
361  $(top_builddir)/src/util/libgnunetutil.la  
362
363 test_strings_SOURCES = \
364  test_strings.c
365 test_strings_LDADD = \
366  $(top_builddir)/src/util/libgnunetutil.la  
367
368 test_time_SOURCES = \
369  test_time.c
370 test_time_LDADD = \
371  $(top_builddir)/src/util/libgnunetutil.la  
372
373 perf_crypto_hash_SOURCES = \
374  perf_crypto_hash.c
375 perf_crypto_hash_LDADD = \
376  $(top_builddir)/src/util/libgnunetutil.la  
377
378
379 EXTRA_DIST = \
380   test_configuration_data.conf \
381   test_program_data.conf \
382   test_pseudonym_data.conf \
383   test_resolver_api_data.conf \
384   test_service_data.conf