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/
17 noinst_LTLIBRARIES = \
19 libgnunetutilwin_la_SOURCES = \
22 libgnunetutilwin_la_LDFLAGS = \
23 -no-undefined -Wl,--export-all-symbols
24 libgnunetutilwin_la_LIBADD = \
25 -lshell32 -liconv -lstdc++ \
26 -lcomdlg32 -lgdi32 -liphlpapi
27 WINLIB = libgnunetutilwin.la
29 W32CONSOLEHELPER = gnunet-helper-w32-console
33 TEST_CLIENT_UNIX_NC = test_client_unix.nc
39 AM_CFLAGS = --coverage -O0
44 BENCHMARK = benchmark.c benchmark.h
48 w32cat_SOURCES = w32cat.c
50 gnunet_helper_w32_console_SOURCES = \
51 gnunet-helper-w32-console.c \
52 gnunet-helper-w32-console.h
53 gnunet_helper_w32_console_LDADD = \
56 gnunet_config_diff_SOURCES = \
58 gnunet_config_diff_LDADD = \
61 test_common_logging_dummy_SOURCES = \
62 test_common_logging_dummy.c
63 test_common_logging_dummy_LDADD = \
66 libgnunetutil_la_SOURCES = \
75 configuration_loader.c \
76 container_bloomfilter.c \
78 container_meta_data.c \
79 container_multihashmap.c \
80 container_multishortmap.c \
81 container_multipeermap.c \
82 container_multihashmap32.c \
116 resolver_api.c resolver.h \
123 speedup.c speedup.h \
148 libgnunetutil_la_LIBADD = \
149 $(GCLIBADD) $(WINLIB) \
155 $(LIBIDN) $(LIBIDN2) \
161 libgnunetutil_la_LDFLAGS = \
165 libgnunetutil_taler_wallet_la_SOURCES = \
166 common_allocation.c \
170 container_multihashmap.c \
171 container_multihashmap32.c \
184 libgnunetutil_taler_wallet_la_LIBADD = \
188 libgnunetutil_taler_wallet_la_LDFLAGS = \
193 GNUNET_ECC = gnunet-ecc
194 GNUNET_SCRYPT = gnunet-scrypt
198 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
200 lib_LTLIBRARIES = libgnunetutil.la
203 gnunet-service-resolver \
220 test_common_logging_dummy
224 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
225 TESTS = $(check_PROGRAMS)
232 gnunet_timeout_SOURCES = \
235 gnunet_timeout_SOURCES = \
239 # This is horrible, but compared to the alternatives and the solution
240 # which preceded this it is a good compromise and good enough for one
241 # file. Everyone else is invited to patch it locally.
243 xENV=$(shell which env)
245 do_subst = $(SED) -e 's,[@]ENV[@],${xENV},g'
247 gnunet-qr: gnunet-qr.py.in Makefile
248 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
251 gnunet_service_resolver_SOURCES = \
252 gnunet-service-resolver.c
253 gnunet_service_resolver_LDADD = \
256 if HAVE_GETADDRINFO_A
257 gnunet_service_resolver_LDADD += -lanl
261 gnunet_resolver_SOURCES = \
263 gnunet_resolver_LDADD = \
268 gnunet_ecc_SOURCES = \
272 $(GN_LIBINTL) -lgcrypt
274 gnunet_scrypt_SOURCES = \
276 gnunet_scrypt_LDADD = \
278 $(GN_LIBINTL) -lgcrypt
281 gnunet_config_SOURCES = \
283 gnunet_config_LDADD = \
288 gnunet_uri_SOURCES = \
294 plugin_LTLIBRARIES = \
295 libgnunet_plugin_test.la
297 libgnunet_plugin_test_la_SOURCES = \
299 libgnunet_plugin_test_la_LDFLAGS = \
305 perf_crypto_ecc_dlog \
307 perf_crypto_paillier \
308 perf_crypto_symmetric \
309 perf_crypto_asymmetric \
314 # SSH_USING_TESTS = test_socks.nc
320 $(TEST_CLIENT_UNIX_NC) \
321 test_common_allocation \
323 test_common_logging \
325 test_container_bloomfilter \
327 test_container_meta_data \
328 test_container_multihashmap \
329 test_container_multihashmap32 \
330 test_container_multipeermap \
331 test_container_heap \
332 test_crypto_symmetric \
337 test_crypto_ecdh_eddsa \
338 test_crypto_ecc_dlog \
340 test_crypto_hash_context \
343 test_crypto_paillier \
355 test_resolver_api.nc \
357 test_scheduler_delay \
360 test_strings_to_data \
365 test_os_start_process \
366 test_common_logging_runtime_loglevels
369 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
370 # sequential execution order for them
371 TEST_EXTENSIONS = .nc
372 test_test_client_unix.log: test_client.log
379 test_hexcoder_SOURCES = \
381 test_hexcoder_LDADD = \
389 test_regex_SOURCES = \
394 test_os_start_process_SOURCES = \
395 test_os_start_process.c
396 test_os_start_process_LDADD = \
398 test_os_start_process_DEPENDENCIES = \
402 test_client_nc_SOURCES = \
404 test_client_nc_LDADD = \
407 test_client_unix_nc_SOURCES = \
409 test_client_unix_nc_LDADD = \
412 #test_socks_nc_SOURCES = \
414 #test_socks_nc_LDADD = \
417 test_common_allocation_SOURCES = \
418 test_common_allocation.c
419 test_common_allocation_LDADD = \
422 test_common_endian_SOURCES = \
424 test_common_endian_LDADD = \
427 test_common_logging_SOURCES = \
428 test_common_logging.c
429 test_common_logging_LDADD = \
432 test_common_logging_runtime_loglevels_SOURCES = \
433 test_common_logging_runtime_loglevels.c
434 test_common_logging_runtime_loglevels_LDADD = \
437 test_configuration_SOURCES = \
439 test_configuration_LDADD = \
442 test_container_bloomfilter_SOURCES = \
443 test_container_bloomfilter.c
444 test_container_bloomfilter_LDADD = \
447 test_container_dll_SOURCES = \
449 test_container_dll_LDADD = \
452 test_container_meta_data_SOURCES = \
453 test_container_meta_data.c
454 test_container_meta_data_LDADD = \
457 test_container_multihashmap_SOURCES = \
458 test_container_multihashmap.c
459 test_container_multihashmap_LDADD = \
462 test_container_multihashmap32_SOURCES = \
463 test_container_multihashmap32.c
464 test_container_multihashmap32_LDADD = \
467 test_container_multipeermap_SOURCES = \
468 test_container_multipeermap.c
469 test_container_multipeermap_LDADD = \
472 test_container_heap_SOURCES = \
473 test_container_heap.c
474 test_container_heap_LDADD = \
477 test_crypto_symmetric_SOURCES = \
478 test_crypto_symmetric.c
479 test_crypto_symmetric_LDADD = \
482 test_crypto_crc_SOURCES = \
484 test_crypto_crc_LDADD = \
487 test_crypto_ecdsa_SOURCES = \
489 test_crypto_ecdsa_LDADD = \
493 test_crypto_eddsa_SOURCES = \
495 test_crypto_eddsa_LDADD = \
499 test_crypto_ecc_dlog_SOURCES = \
500 test_crypto_ecc_dlog.c
501 test_crypto_ecc_dlog_LDADD = \
505 test_crypto_ecdhe_SOURCES = \
507 test_crypto_ecdhe_LDADD = \
511 test_crypto_ecdh_eddsa_SOURCES = \
512 test_crypto_ecdh_eddsa.c
513 test_crypto_ecdh_eddsa_LDADD = \
517 test_crypto_hash_SOURCES = \
519 test_crypto_hash_LDADD = \
522 test_crypto_hash_context_SOURCES = \
523 test_crypto_hash_context.c
524 test_crypto_hash_context_LDADD = \
527 test_crypto_hkdf_SOURCES = \
529 test_crypto_hkdf_LDADD = \
532 test_crypto_kdf_SOURCES = \
534 test_crypto_kdf_LDADD = \
535 libgnunetutil.la -lgcrypt
537 test_crypto_paillier_SOURCES = \
538 test_crypto_paillier.c
539 test_crypto_paillier_LDADD = \
543 test_crypto_random_SOURCES = \
545 test_crypto_random_LDADD = \
548 test_crypto_rsa_SOURCES = \
550 test_crypto_rsa_LDADD = \
551 libgnunetutil.la -lgcrypt
553 test_disk_SOURCES = \
558 test_getopt_SOURCES = \
560 test_getopt_LDADD = \
568 test_os_network_SOURCES = \
570 test_os_network_LDADD = \
573 test_peer_SOURCES = \
576 libgnunetutil.la -lgcrypt
578 test_plugin_SOURCES = \
580 test_plugin_LDADD = \
583 test_program_SOURCES = \
585 test_program_LDADD = \
588 test_resolver_api_nc_SOURCES = \
590 test_resolver_api_nc_LDADD = \
593 test_scheduler_SOURCES = \
595 test_scheduler_LDADD = \
598 test_scheduler_delay_SOURCES = \
599 test_scheduler_delay.c
600 test_scheduler_delay_LDADD = \
603 test_service_SOURCES = \
605 test_service_LDADD = \
608 test_strings_SOURCES = \
610 test_strings_LDADD = \
613 test_strings_to_data_SOURCES = \
614 test_strings_to_data.c
615 test_strings_to_data_LDADD = \
619 test_time_SOURCES = \
624 test_speedup_SOURCES = \
626 test_speedup_LDADD = \
629 perf_crypto_hash_SOURCES = \
631 perf_crypto_hash_LDADD = \
634 perf_crypto_ecc_dlog_SOURCES = \
635 perf_crypto_ecc_dlog.c
636 perf_crypto_ecc_dlog_LDADD = \
640 perf_crypto_rsa_SOURCES = \
642 perf_crypto_rsa_LDADD = \
645 perf_crypto_symmetric_SOURCES = \
646 perf_crypto_symmetric.c
647 perf_crypto_symmetric_LDADD = \
650 perf_crypto_asymmetric_SOURCES = \
651 perf_crypto_asymmetric.c
652 perf_crypto_asymmetric_LDADD = \
655 perf_crypto_paillier_SOURCES = \
656 perf_crypto_paillier.c
657 perf_crypto_paillier_LDADD = \
661 perf_malloc_SOURCES = \
663 perf_malloc_LDADD = \
668 test_client_data.conf \
669 test_client_unix.conf \
670 test_configuration_data.conf \
671 test_program_data.conf \
672 test_resolver_api_data.conf \
673 test_service_data.conf \
674 test_speedup_data.conf \