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 \
144 libgnunetutil_la_LIBADD = \
145 $(GCLIBADD) $(WINLIB) \
151 $(LIBIDN) $(LIBIDN2) \
157 libgnunetutil_la_LDFLAGS = \
161 libgnunetutil_taler_wallet_la_SOURCES = \
162 common_allocation.c \
166 container_multihashmap.c \
167 container_multihashmap32.c \
180 libgnunetutil_taler_wallet_la_LIBADD = \
184 libgnunetutil_taler_wallet_la_LDFLAGS = \
189 GNUNET_ECC = gnunet-ecc
190 GNUNET_SCRYPT = gnunet-scrypt
194 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
196 lib_LTLIBRARIES = libgnunetutil.la
199 gnunet-service-resolver \
216 test_common_logging_dummy
220 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
221 TESTS = $(check_PROGRAMS)
228 gnunet_timeout_SOURCES = \
231 gnunet_timeout_SOURCES = \
235 # This is horrible, but compared to the alternatives and the solution
236 # which preceded this it is a good compromise and good enough for one
237 # file. Everyone else is invited to patch it locally.
239 xENV=$(shell which env)
241 do_subst = $(SED) -e 's,[@]ENV[@],${xENV},g'
243 gnunet-qr: gnunet-qr.py.in Makefile
244 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
247 gnunet_service_resolver_SOURCES = \
248 gnunet-service-resolver.c
249 gnunet_service_resolver_LDADD = \
252 if HAVE_GETADDRINFO_A
253 gnunet_service_resolver_LDADD += -lanl
257 gnunet_resolver_SOURCES = \
259 gnunet_resolver_LDADD = \
264 gnunet_ecc_SOURCES = \
268 $(GN_LIBINTL) -lgcrypt
270 gnunet_scrypt_SOURCES = \
272 gnunet_scrypt_LDADD = \
274 $(GN_LIBINTL) -lgcrypt
277 gnunet_config_SOURCES = \
279 gnunet_config_LDADD = \
284 gnunet_uri_SOURCES = \
290 plugin_LTLIBRARIES = \
291 libgnunet_plugin_test.la
293 libgnunet_plugin_test_la_SOURCES = \
295 libgnunet_plugin_test_la_LDFLAGS = \
301 perf_crypto_ecc_dlog \
303 perf_crypto_paillier \
304 perf_crypto_symmetric \
305 perf_crypto_asymmetric \
310 # SSH_USING_TESTS = test_socks.nc
316 $(TEST_CLIENT_UNIX_NC) \
317 test_common_allocation \
319 test_common_logging \
321 test_container_bloomfilter \
323 test_container_meta_data \
324 test_container_multihashmap \
325 test_container_multihashmap32 \
326 test_container_multipeermap \
327 test_container_heap \
328 test_crypto_symmetric \
333 test_crypto_ecdh_eddsa \
334 test_crypto_ecc_dlog \
336 test_crypto_hash_context \
339 test_crypto_paillier \
351 test_resolver_api.nc \
353 test_scheduler_delay \
356 test_strings_to_data \
361 test_os_start_process \
362 test_common_logging_runtime_loglevels
365 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
366 # sequential execution order for them
367 TEST_EXTENSIONS = .nc
368 test_test_client_unix.log: test_client.log
375 test_hexcoder_SOURCES = \
377 test_hexcoder_LDADD = \
385 test_regex_SOURCES = \
390 test_os_start_process_SOURCES = \
391 test_os_start_process.c
392 test_os_start_process_LDADD = \
394 test_os_start_process_DEPENDENCIES = \
398 test_client_nc_SOURCES = \
400 test_client_nc_LDADD = \
403 test_client_unix_nc_SOURCES = \
405 test_client_unix_nc_LDADD = \
408 #test_socks_nc_SOURCES = \
410 #test_socks_nc_LDADD = \
413 test_common_allocation_SOURCES = \
414 test_common_allocation.c
415 test_common_allocation_LDADD = \
418 test_common_endian_SOURCES = \
420 test_common_endian_LDADD = \
423 test_common_logging_SOURCES = \
424 test_common_logging.c
425 test_common_logging_LDADD = \
428 test_common_logging_runtime_loglevels_SOURCES = \
429 test_common_logging_runtime_loglevels.c
430 test_common_logging_runtime_loglevels_LDADD = \
433 test_configuration_SOURCES = \
435 test_configuration_LDADD = \
438 test_container_bloomfilter_SOURCES = \
439 test_container_bloomfilter.c
440 test_container_bloomfilter_LDADD = \
443 test_container_dll_SOURCES = \
445 test_container_dll_LDADD = \
448 test_container_meta_data_SOURCES = \
449 test_container_meta_data.c
450 test_container_meta_data_LDADD = \
453 test_container_multihashmap_SOURCES = \
454 test_container_multihashmap.c
455 test_container_multihashmap_LDADD = \
458 test_container_multihashmap32_SOURCES = \
459 test_container_multihashmap32.c
460 test_container_multihashmap32_LDADD = \
463 test_container_multipeermap_SOURCES = \
464 test_container_multipeermap.c
465 test_container_multipeermap_LDADD = \
468 test_container_heap_SOURCES = \
469 test_container_heap.c
470 test_container_heap_LDADD = \
473 test_crypto_symmetric_SOURCES = \
474 test_crypto_symmetric.c
475 test_crypto_symmetric_LDADD = \
478 test_crypto_crc_SOURCES = \
480 test_crypto_crc_LDADD = \
483 test_crypto_ecdsa_SOURCES = \
485 test_crypto_ecdsa_LDADD = \
489 test_crypto_eddsa_SOURCES = \
491 test_crypto_eddsa_LDADD = \
495 test_crypto_ecc_dlog_SOURCES = \
496 test_crypto_ecc_dlog.c
497 test_crypto_ecc_dlog_LDADD = \
501 test_crypto_ecdhe_SOURCES = \
503 test_crypto_ecdhe_LDADD = \
507 test_crypto_ecdh_eddsa_SOURCES = \
508 test_crypto_ecdh_eddsa.c
509 test_crypto_ecdh_eddsa_LDADD = \
513 test_crypto_hash_SOURCES = \
515 test_crypto_hash_LDADD = \
518 test_crypto_hash_context_SOURCES = \
519 test_crypto_hash_context.c
520 test_crypto_hash_context_LDADD = \
523 test_crypto_hkdf_SOURCES = \
525 test_crypto_hkdf_LDADD = \
528 test_crypto_kdf_SOURCES = \
530 test_crypto_kdf_LDADD = \
531 libgnunetutil.la -lgcrypt
533 test_crypto_paillier_SOURCES = \
534 test_crypto_paillier.c
535 test_crypto_paillier_LDADD = \
539 test_crypto_random_SOURCES = \
541 test_crypto_random_LDADD = \
544 test_crypto_rsa_SOURCES = \
546 test_crypto_rsa_LDADD = \
547 libgnunetutil.la -lgcrypt
549 test_disk_SOURCES = \
554 test_getopt_SOURCES = \
556 test_getopt_LDADD = \
564 test_os_network_SOURCES = \
566 test_os_network_LDADD = \
569 test_peer_SOURCES = \
572 libgnunetutil.la -lgcrypt
574 test_plugin_SOURCES = \
576 test_plugin_LDADD = \
579 test_program_SOURCES = \
581 test_program_LDADD = \
584 test_resolver_api_nc_SOURCES = \
586 test_resolver_api_nc_LDADD = \
589 test_scheduler_SOURCES = \
591 test_scheduler_LDADD = \
594 test_scheduler_delay_SOURCES = \
595 test_scheduler_delay.c
596 test_scheduler_delay_LDADD = \
599 test_service_SOURCES = \
601 test_service_LDADD = \
604 test_strings_SOURCES = \
606 test_strings_LDADD = \
609 test_strings_to_data_SOURCES = \
610 test_strings_to_data.c
611 test_strings_to_data_LDADD = \
615 test_time_SOURCES = \
620 test_speedup_SOURCES = \
622 test_speedup_LDADD = \
625 perf_crypto_hash_SOURCES = \
627 perf_crypto_hash_LDADD = \
630 perf_crypto_ecc_dlog_SOURCES = \
631 perf_crypto_ecc_dlog.c
632 perf_crypto_ecc_dlog_LDADD = \
636 perf_crypto_rsa_SOURCES = \
638 perf_crypto_rsa_LDADD = \
641 perf_crypto_symmetric_SOURCES = \
642 perf_crypto_symmetric.c
643 perf_crypto_symmetric_LDADD = \
646 perf_crypto_asymmetric_SOURCES = \
647 perf_crypto_asymmetric.c
648 perf_crypto_asymmetric_LDADD = \
651 perf_crypto_paillier_SOURCES = \
652 perf_crypto_paillier.c
653 perf_crypto_paillier_LDADD = \
657 perf_malloc_SOURCES = \
659 perf_malloc_LDADD = \
664 test_client_data.conf \
665 test_client_unix.conf \
666 test_configuration_data.conf \
667 test_program_data.conf \
668 test_resolver_api_data.conf \
669 test_service_data.conf \
670 test_speedup_data.conf \