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