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