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 = \
47 configuration_loader.c \
48 container_bloomfilter.c \
50 container_meta_data.c \
51 container_multihashmap.c \
52 container_multishortmap.c \
53 container_multiuuidmap.c \
54 container_multipeermap.c \
55 container_multihashmap32.c \
89 resolver_api.c resolver.h \
121 libgnunetutil_la_LIBADD = \
122 $(GCLIBADD) $(WINLIB) \
128 $(LIBIDN) $(LIBIDN2) \
134 libgnunetutil_la_LDFLAGS = \
138 libgnunetutil_taler_wallet_la_SOURCES = \
139 common_allocation.c \
143 container_multihashmap.c \
144 container_multihashmap32.c \
157 libgnunetutil_taler_wallet_la_LIBADD = \
161 libgnunetutil_taler_wallet_la_LDFLAGS = \
166 GNUNET_ECC = gnunet-ecc
167 GNUNET_SCRYPT = gnunet-scrypt
171 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
173 lib_LTLIBRARIES = libgnunetutil.la
176 gnunet-service-resolver \
186 bin_PROGRAMS += gnunet-qr
191 test_common_logging_dummy
195 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
196 TESTS = $(check_PROGRAMS)
201 gnunet_timeout_SOURCES = \
204 gnunet_service_resolver_SOURCES = \
205 gnunet-service-resolver.c
206 gnunet_service_resolver_LDADD = \
209 if HAVE_GETADDRINFO_A
210 gnunet_service_resolver_LDADD += -lanl
214 gnunet_resolver_SOURCES = \
216 gnunet_resolver_LDADD = \
221 gnunet_ecc_SOURCES = \
225 $(GN_LIBINTL) -lgcrypt
227 gnunet_scrypt_SOURCES = \
229 gnunet_scrypt_LDADD = \
231 $(GN_LIBINTL) -lgcrypt
234 gnunet_config_SOURCES = \
236 gnunet_config_LDADD = \
240 gnunet_uri_SOURCES = \
247 gnunet_qr_SOURCES = \
252 gnunet_qr_LDFLAGS= -lzbar -ljpeg
253 # -lICE -lSM -lX11 -lXv
255 plugin_LTLIBRARIES = \
256 libgnunet_plugin_test.la
258 libgnunet_plugin_test_la_SOURCES = \
260 libgnunet_plugin_test_la_LDFLAGS = \
266 perf_crypto_ecc_dlog \
268 perf_crypto_paillier \
269 perf_crypto_symmetric \
270 perf_crypto_asymmetric \
275 # SSH_USING_TESTS = test_socks.nc
281 $(TEST_CLIENT_UNIX_NC) \
282 test_common_allocation \
284 test_common_logging \
286 test_container_bloomfilter \
288 test_container_meta_data \
289 test_container_multihashmap \
290 test_container_multihashmap32 \
291 test_container_multipeermap \
292 test_container_heap \
293 test_crypto_symmetric \
298 test_crypto_ecdh_eddsa \
299 test_crypto_ecc_dlog \
301 test_crypto_hash_context \
304 test_crypto_paillier \
316 test_resolver_api.nc \
318 test_scheduler_delay \
321 test_strings_to_data \
326 test_os_start_process \
327 test_common_logging_runtime_loglevels
330 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
331 # sequential execution order for them
332 TEST_EXTENSIONS = .nc
333 test_test_client_unix.log: test_client.log
340 test_hexcoder_SOURCES = \
342 test_hexcoder_LDADD = \
350 test_regex_SOURCES = \
355 test_os_start_process_SOURCES = \
356 test_os_start_process.c
357 test_os_start_process_LDADD = \
359 test_os_start_process_DEPENDENCIES = \
362 test_client_nc_SOURCES = \
364 test_client_nc_LDADD = \
367 test_client_unix_nc_SOURCES = \
369 test_client_unix_nc_LDADD = \
372 #test_socks_nc_SOURCES = \
374 #test_socks_nc_LDADD = \
377 test_common_allocation_SOURCES = \
378 test_common_allocation.c
379 test_common_allocation_LDADD = \
382 test_common_endian_SOURCES = \
384 test_common_endian_LDADD = \
387 test_common_logging_SOURCES = \
388 test_common_logging.c
389 test_common_logging_LDADD = \
392 test_common_logging_runtime_loglevels_SOURCES = \
393 test_common_logging_runtime_loglevels.c
394 test_common_logging_runtime_loglevels_LDADD = \
397 test_configuration_SOURCES = \
399 test_configuration_LDADD = \
402 test_container_bloomfilter_SOURCES = \
403 test_container_bloomfilter.c
404 test_container_bloomfilter_LDADD = \
407 test_container_dll_SOURCES = \
409 test_container_dll_LDADD = \
412 test_container_meta_data_SOURCES = \
413 test_container_meta_data.c
414 test_container_meta_data_LDADD = \
417 test_container_multihashmap_SOURCES = \
418 test_container_multihashmap.c
419 test_container_multihashmap_LDADD = \
422 test_container_multihashmap32_SOURCES = \
423 test_container_multihashmap32.c
424 test_container_multihashmap32_LDADD = \
427 test_container_multipeermap_SOURCES = \
428 test_container_multipeermap.c
429 test_container_multipeermap_LDADD = \
432 test_container_heap_SOURCES = \
433 test_container_heap.c
434 test_container_heap_LDADD = \
437 test_crypto_symmetric_SOURCES = \
438 test_crypto_symmetric.c
439 test_crypto_symmetric_LDADD = \
442 test_crypto_crc_SOURCES = \
444 test_crypto_crc_LDADD = \
447 test_crypto_ecdsa_SOURCES = \
449 test_crypto_ecdsa_LDADD = \
453 test_crypto_eddsa_SOURCES = \
455 test_crypto_eddsa_LDADD = \
459 test_crypto_ecc_dlog_SOURCES = \
460 test_crypto_ecc_dlog.c
461 test_crypto_ecc_dlog_LDADD = \
465 test_crypto_ecdhe_SOURCES = \
467 test_crypto_ecdhe_LDADD = \
471 test_crypto_ecdh_eddsa_SOURCES = \
472 test_crypto_ecdh_eddsa.c
473 test_crypto_ecdh_eddsa_LDADD = \
477 test_crypto_hash_SOURCES = \
479 test_crypto_hash_LDADD = \
482 test_crypto_hash_context_SOURCES = \
483 test_crypto_hash_context.c
484 test_crypto_hash_context_LDADD = \
487 test_crypto_hkdf_SOURCES = \
489 test_crypto_hkdf_LDADD = \
492 test_crypto_kdf_SOURCES = \
494 test_crypto_kdf_LDADD = \
495 libgnunetutil.la -lgcrypt
497 test_crypto_paillier_SOURCES = \
498 test_crypto_paillier.c
499 test_crypto_paillier_LDADD = \
503 test_crypto_random_SOURCES = \
505 test_crypto_random_LDADD = \
508 test_crypto_rsa_SOURCES = \
510 test_crypto_rsa_LDADD = \
511 libgnunetutil.la -lgcrypt
513 test_disk_SOURCES = \
518 test_getopt_SOURCES = \
520 test_getopt_LDADD = \
528 test_os_network_SOURCES = \
530 test_os_network_LDADD = \
533 test_peer_SOURCES = \
536 libgnunetutil.la -lgcrypt
538 test_plugin_SOURCES = \
540 test_plugin_LDADD = \
543 test_program_SOURCES = \
545 test_program_LDADD = \
548 test_resolver_api_nc_SOURCES = \
550 test_resolver_api_nc_LDADD = \
553 test_scheduler_SOURCES = \
555 test_scheduler_LDADD = \
558 test_scheduler_delay_SOURCES = \
559 test_scheduler_delay.c
560 test_scheduler_delay_LDADD = \
563 test_service_SOURCES = \
565 test_service_LDADD = \
568 test_strings_SOURCES = \
570 test_strings_LDADD = \
573 test_strings_to_data_SOURCES = \
574 test_strings_to_data.c
575 test_strings_to_data_LDADD = \
579 test_time_SOURCES = \
584 test_speedup_SOURCES = \
586 test_speedup_LDADD = \
589 perf_crypto_hash_SOURCES = \
591 perf_crypto_hash_LDADD = \
594 perf_crypto_ecc_dlog_SOURCES = \
595 perf_crypto_ecc_dlog.c
596 perf_crypto_ecc_dlog_LDADD = \
600 perf_crypto_rsa_SOURCES = \
602 perf_crypto_rsa_LDADD = \
605 perf_crypto_symmetric_SOURCES = \
606 perf_crypto_symmetric.c
607 perf_crypto_symmetric_LDADD = \
610 perf_crypto_asymmetric_SOURCES = \
611 perf_crypto_asymmetric.c
612 perf_crypto_asymmetric_LDADD = \
615 perf_crypto_paillier_SOURCES = \
616 perf_crypto_paillier.c
617 perf_crypto_paillier_LDADD = \
621 perf_malloc_SOURCES = \
623 perf_malloc_LDADD = \
628 test_client_data.conf \
629 test_client_unix.conf \
630 test_configuration_data.conf \
631 test_program_data.conf \
632 test_resolver_api_data.conf \
633 test_service_data.conf \
634 test_speedup_data.conf