1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 libexecdir= $(pkglibdir)/libexec/
8 pkgcfgdir= $(pkgdatadir)/config.d/
16 TEST_CLIENT_UNIX_NC = test_client_unix.nc
19 AM_CFLAGS = --coverage -O0
24 BENCHMARK = benchmark.c benchmark.h
28 gnunet_config_diff_SOURCES = \
30 gnunet_config_diff_LDADD = \
33 test_common_logging_dummy_SOURCES = \
34 test_common_logging_dummy.c
35 test_common_logging_dummy_LDADD = \
38 libgnunetutil_la_SOURCES = \
48 configuration_loader.c \
49 container_bloomfilter.c \
51 container_meta_data.c \
52 container_multihashmap.c \
53 container_multishortmap.c \
54 container_multiuuidmap.c \
55 container_multipeermap.c \
56 container_multihashmap32.c \
91 resolver_api.c resolver.h \
100 speedup.c speedup.h \
125 libgnunetutil_la_LIBADD = \
126 $(GCLIBADD) $(WINLIB) \
132 $(LIBIDN) $(LIBIDN2) \
138 libgnunetutil_la_LDFLAGS = \
143 GNUNET_ECC = gnunet-ecc
144 GNUNET_SCRYPT = gnunet-scrypt
147 lib_LTLIBRARIES = libgnunetutil.la
150 gnunet-service-resolver \
161 bin_PROGRAMS += gnunet-qr
166 test_common_logging_dummy
170 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
171 TESTS = $(check_PROGRAMS)
174 gnunet_timeout_SOURCES = \
177 gnunet_service_resolver_SOURCES = \
178 gnunet-service-resolver.c
179 gnunet_service_resolver_LDADD = \
182 if HAVE_GETADDRINFO_A
183 gnunet_service_resolver_LDADD += -lanl
187 gnunet_resolver_SOURCES = \
189 gnunet_resolver_LDADD = \
193 gnunet_crypto_tvg_SOURCES = \
195 gnunet_crypto_tvg_LDADD = \
197 $(GN_LIBINTL) -lgcrypt
199 gnunet_ecc_SOURCES = \
203 $(GN_LIBINTL) -lgcrypt
205 gnunet_scrypt_SOURCES = \
207 gnunet_scrypt_LDADD = \
209 $(GN_LIBINTL) -lgcrypt
212 gnunet_config_SOURCES = \
214 gnunet_config_LDADD = \
218 gnunet_uri_SOURCES = \
225 gnunet_qr_SOURCES = \
230 gnunet_qr_LDFLAGS= -lzbar
232 plugin_LTLIBRARIES = \
233 libgnunet_plugin_test.la
235 libgnunet_plugin_test_la_SOURCES = \
237 libgnunet_plugin_test_la_LDFLAGS = \
243 perf_crypto_ecc_dlog \
245 perf_crypto_paillier \
246 perf_crypto_symmetric \
247 perf_crypto_asymmetric \
252 # SSH_USING_TESTS = test_socks.nc
258 $(TEST_CLIENT_UNIX_NC) \
259 test_common_allocation \
261 test_common_logging \
263 test_container_bloomfilter \
265 test_container_meta_data \
266 test_container_multihashmap \
267 test_container_multihashmap32 \
268 test_container_multipeermap \
269 test_container_heap \
270 test_crypto_symmetric \
275 test_crypto_ecdh_eddsa \
276 test_crypto_ecdh_ecdsa \
277 test_crypto_ecc_dlog \
279 test_crypto_hash_context \
282 test_crypto_paillier \
294 test_resolver_api.nc \
296 test_scheduler_delay \
299 test_strings_to_data \
304 test_os_start_process \
305 test_common_logging_runtime_loglevels
308 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
309 # sequential execution order for them
310 TEST_EXTENSIONS = .nc
311 test_test_client_unix.log: test_client.log
318 test_hexcoder_SOURCES = \
320 test_hexcoder_LDADD = \
328 test_regex_SOURCES = \
333 test_os_start_process_SOURCES = \
334 test_os_start_process.c
335 test_os_start_process_LDADD = \
337 test_os_start_process_DEPENDENCIES = \
340 test_client_nc_SOURCES = \
342 test_client_nc_LDADD = \
345 test_client_unix_nc_SOURCES = \
347 test_client_unix_nc_LDADD = \
350 #test_socks_nc_SOURCES = \
352 #test_socks_nc_LDADD = \
355 test_common_allocation_SOURCES = \
356 test_common_allocation.c
357 test_common_allocation_LDADD = \
360 test_common_endian_SOURCES = \
362 test_common_endian_LDADD = \
365 test_common_logging_SOURCES = \
366 test_common_logging.c
367 test_common_logging_LDADD = \
370 test_common_logging_runtime_loglevels_SOURCES = \
371 test_common_logging_runtime_loglevels.c
372 test_common_logging_runtime_loglevels_LDADD = \
375 test_configuration_SOURCES = \
377 test_configuration_LDADD = \
380 test_container_bloomfilter_SOURCES = \
381 test_container_bloomfilter.c
382 test_container_bloomfilter_LDADD = \
385 test_container_dll_SOURCES = \
387 test_container_dll_LDADD = \
390 test_container_meta_data_SOURCES = \
391 test_container_meta_data.c
392 test_container_meta_data_LDADD = \
395 test_container_multihashmap_SOURCES = \
396 test_container_multihashmap.c
397 test_container_multihashmap_LDADD = \
400 test_container_multihashmap32_SOURCES = \
401 test_container_multihashmap32.c
402 test_container_multihashmap32_LDADD = \
405 test_container_multipeermap_SOURCES = \
406 test_container_multipeermap.c
407 test_container_multipeermap_LDADD = \
410 test_container_heap_SOURCES = \
411 test_container_heap.c
412 test_container_heap_LDADD = \
415 test_crypto_symmetric_SOURCES = \
416 test_crypto_symmetric.c
417 test_crypto_symmetric_LDADD = \
420 test_crypto_crc_SOURCES = \
422 test_crypto_crc_LDADD = \
425 test_crypto_ecdsa_SOURCES = \
427 test_crypto_ecdsa_LDADD = \
431 test_crypto_eddsa_SOURCES = \
433 test_crypto_eddsa_LDADD = \
437 test_crypto_ecc_dlog_SOURCES = \
438 test_crypto_ecc_dlog.c
439 test_crypto_ecc_dlog_LDADD = \
443 test_crypto_ecdhe_SOURCES = \
445 test_crypto_ecdhe_LDADD = \
449 test_crypto_ecdh_eddsa_SOURCES = \
450 test_crypto_ecdh_eddsa.c
451 test_crypto_ecdh_eddsa_LDADD = \
455 test_crypto_ecdh_ecdsa_SOURCES = \
456 test_crypto_ecdh_ecdsa.c
457 test_crypto_ecdh_ecdsa_LDADD = \
462 test_crypto_hash_SOURCES = \
464 test_crypto_hash_LDADD = \
467 test_crypto_hash_context_SOURCES = \
468 test_crypto_hash_context.c
469 test_crypto_hash_context_LDADD = \
472 test_crypto_hkdf_SOURCES = \
474 test_crypto_hkdf_LDADD = \
477 test_crypto_kdf_SOURCES = \
479 test_crypto_kdf_LDADD = \
480 libgnunetutil.la -lgcrypt
482 test_crypto_paillier_SOURCES = \
483 test_crypto_paillier.c
484 test_crypto_paillier_LDADD = \
488 test_crypto_random_SOURCES = \
490 test_crypto_random_LDADD = \
493 test_crypto_rsa_SOURCES = \
495 test_crypto_rsa_LDADD = \
496 libgnunetutil.la -lgcrypt
498 test_disk_SOURCES = \
503 test_getopt_SOURCES = \
505 test_getopt_LDADD = \
513 test_os_network_SOURCES = \
515 test_os_network_LDADD = \
518 test_peer_SOURCES = \
521 libgnunetutil.la -lgcrypt
523 test_plugin_SOURCES = \
525 test_plugin_LDADD = \
528 test_program_SOURCES = \
530 test_program_LDADD = \
533 test_resolver_api_nc_SOURCES = \
535 test_resolver_api_nc_LDADD = \
538 test_scheduler_SOURCES = \
540 test_scheduler_LDADD = \
543 test_scheduler_delay_SOURCES = \
544 test_scheduler_delay.c
545 test_scheduler_delay_LDADD = \
548 test_service_SOURCES = \
550 test_service_LDADD = \
553 test_strings_SOURCES = \
555 test_strings_LDADD = \
558 test_strings_to_data_SOURCES = \
559 test_strings_to_data.c
560 test_strings_to_data_LDADD = \
564 test_time_SOURCES = \
569 test_speedup_SOURCES = \
571 test_speedup_LDADD = \
574 perf_crypto_hash_SOURCES = \
576 perf_crypto_hash_LDADD = \
579 perf_crypto_ecc_dlog_SOURCES = \
580 perf_crypto_ecc_dlog.c
581 perf_crypto_ecc_dlog_LDADD = \
585 perf_crypto_rsa_SOURCES = \
587 perf_crypto_rsa_LDADD = \
590 perf_crypto_symmetric_SOURCES = \
591 perf_crypto_symmetric.c
592 perf_crypto_symmetric_LDADD = \
595 perf_crypto_asymmetric_SOURCES = \
596 perf_crypto_asymmetric.c
597 perf_crypto_asymmetric_LDADD = \
600 perf_crypto_paillier_SOURCES = \
601 perf_crypto_paillier.c
602 perf_crypto_paillier_LDADD = \
606 perf_malloc_SOURCES = \
608 perf_malloc_LDADD = \
613 test_client_data.conf \
614 test_client_unix.conf \
615 test_configuration_data.conf \
616 test_program_data.conf \
617 test_resolver_api_data.conf \
618 test_service_data.conf \
619 test_speedup_data.conf