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 \
138 libgnunetutil_la_LIBADD = \
139 $(GCLIBADD) $(WINLIB) \
144 $(LIBIDN) $(LIBIDN2) \
150 libgnunetutil_la_LDFLAGS = \
154 libgnunetutil_taler_wallet_la_SOURCES = \
155 common_allocation.c \
159 container_multihashmap.c \
160 container_multihashmap32.c \
173 libgnunetutil_taler_wallet_la_LIBADD = \
177 libgnunetutil_taler_wallet_la_LDFLAGS = \
182 GNUNET_ECC = gnunet-ecc
183 GNUNET_SCRYPT = gnunet-scrypt
187 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
189 lib_LTLIBRARIES = libgnunetutil.la
192 gnunet-service-resolver \
209 test_common_logging_dummy
213 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
214 TESTS = $(check_PROGRAMS)
221 gnunet_timeout_SOURCES = \
224 gnunet_timeout_SOURCES = \
229 mypython27=$(shell cat $(top_srcdir)/src/util/python27_location)
231 do_subst = $(SED) -e 's,[@]PYTHON2[@],${mypython27},g'
233 gnunet-qr: gnunet-qr.py.in Makefile
234 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
237 gnunet_service_resolver_SOURCES = \
238 gnunet-service-resolver.c
239 gnunet_service_resolver_LDADD = \
242 if HAVE_GETADDRINFO_A
243 gnunet_service_resolver_LDADD += -lanl
247 gnunet_resolver_SOURCES = \
249 gnunet_resolver_LDADD = \
254 gnunet_ecc_SOURCES = \
258 $(GN_LIBINTL) -lgcrypt
260 gnunet_scrypt_SOURCES = \
262 gnunet_scrypt_LDADD = \
264 $(GN_LIBINTL) -lgcrypt
267 gnunet_config_SOURCES = \
269 gnunet_config_LDADD = \
274 gnunet_uri_SOURCES = \
280 plugin_LTLIBRARIES = \
281 libgnunet_plugin_test.la
283 libgnunet_plugin_test_la_SOURCES = \
285 libgnunet_plugin_test_la_LDFLAGS = \
291 perf_crypto_ecc_dlog \
293 perf_crypto_paillier \
294 perf_crypto_symmetric \
295 perf_crypto_asymmetric \
300 # SSH_USING_TESTS = test_socks.nc
306 $(TEST_CLIENT_UNIX_NC) \
307 test_common_allocation \
309 test_common_logging \
311 test_container_bloomfilter \
313 test_container_meta_data \
314 test_container_multihashmap \
315 test_container_multihashmap32 \
316 test_container_multipeermap \
317 test_container_heap \
318 test_crypto_symmetric \
323 test_crypto_ecdh_eddsa \
324 test_crypto_ecc_dlog \
326 test_crypto_hash_context \
329 test_crypto_paillier \
341 test_resolver_api.nc \
343 test_scheduler_delay \
346 test_strings_to_data \
351 test_os_start_process \
352 test_common_logging_runtime_loglevels
355 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
356 # sequential execution order for them
357 TEST_EXTENSIONS = .nc
358 test_test_client_unix.log: test_client.log
365 test_hexcoder_SOURCES = \
367 test_hexcoder_LDADD = \
375 test_regex_SOURCES = \
380 test_os_start_process_SOURCES = \
381 test_os_start_process.c
382 test_os_start_process_LDADD = \
384 test_os_start_process_DEPENDENCIES = \
388 test_client_nc_SOURCES = \
390 test_client_nc_LDADD = \
393 test_client_unix_nc_SOURCES = \
395 test_client_unix_nc_LDADD = \
398 #test_socks_nc_SOURCES = \
400 #test_socks_nc_LDADD = \
403 test_common_allocation_SOURCES = \
404 test_common_allocation.c
405 test_common_allocation_LDADD = \
408 test_common_endian_SOURCES = \
410 test_common_endian_LDADD = \
413 test_common_logging_SOURCES = \
414 test_common_logging.c
415 test_common_logging_LDADD = \
418 test_common_logging_runtime_loglevels_SOURCES = \
419 test_common_logging_runtime_loglevels.c
420 test_common_logging_runtime_loglevels_LDADD = \
423 test_configuration_SOURCES = \
425 test_configuration_LDADD = \
428 test_container_bloomfilter_SOURCES = \
429 test_container_bloomfilter.c
430 test_container_bloomfilter_LDADD = \
433 test_container_dll_SOURCES = \
435 test_container_dll_LDADD = \
438 test_container_meta_data_SOURCES = \
439 test_container_meta_data.c
440 test_container_meta_data_LDADD = \
443 test_container_multihashmap_SOURCES = \
444 test_container_multihashmap.c
445 test_container_multihashmap_LDADD = \
448 test_container_multihashmap32_SOURCES = \
449 test_container_multihashmap32.c
450 test_container_multihashmap32_LDADD = \
453 test_container_multipeermap_SOURCES = \
454 test_container_multipeermap.c
455 test_container_multipeermap_LDADD = \
458 test_container_heap_SOURCES = \
459 test_container_heap.c
460 test_container_heap_LDADD = \
463 test_crypto_symmetric_SOURCES = \
464 test_crypto_symmetric.c
465 test_crypto_symmetric_LDADD = \
468 test_crypto_crc_SOURCES = \
470 test_crypto_crc_LDADD = \
473 test_crypto_ecdsa_SOURCES = \
475 test_crypto_ecdsa_LDADD = \
479 test_crypto_eddsa_SOURCES = \
481 test_crypto_eddsa_LDADD = \
485 test_crypto_ecc_dlog_SOURCES = \
486 test_crypto_ecc_dlog.c
487 test_crypto_ecc_dlog_LDADD = \
491 test_crypto_ecdhe_SOURCES = \
493 test_crypto_ecdhe_LDADD = \
497 test_crypto_ecdh_eddsa_SOURCES = \
498 test_crypto_ecdh_eddsa.c
499 test_crypto_ecdh_eddsa_LDADD = \
503 test_crypto_hash_SOURCES = \
505 test_crypto_hash_LDADD = \
508 test_crypto_hash_context_SOURCES = \
509 test_crypto_hash_context.c
510 test_crypto_hash_context_LDADD = \
513 test_crypto_hkdf_SOURCES = \
515 test_crypto_hkdf_LDADD = \
518 test_crypto_kdf_SOURCES = \
520 test_crypto_kdf_LDADD = \
521 libgnunetutil.la -lgcrypt
523 test_crypto_paillier_SOURCES = \
524 test_crypto_paillier.c
525 test_crypto_paillier_LDADD = \
529 test_crypto_random_SOURCES = \
531 test_crypto_random_LDADD = \
534 test_crypto_rsa_SOURCES = \
536 test_crypto_rsa_LDADD = \
537 libgnunetutil.la -lgcrypt
539 test_disk_SOURCES = \
544 test_getopt_SOURCES = \
546 test_getopt_LDADD = \
554 test_os_network_SOURCES = \
556 test_os_network_LDADD = \
559 test_peer_SOURCES = \
562 libgnunetutil.la -lgcrypt
564 test_plugin_SOURCES = \
566 test_plugin_LDADD = \
569 test_program_SOURCES = \
571 test_program_LDADD = \
574 test_resolver_api_nc_SOURCES = \
576 test_resolver_api_nc_LDADD = \
579 test_scheduler_SOURCES = \
581 test_scheduler_LDADD = \
584 test_scheduler_delay_SOURCES = \
585 test_scheduler_delay.c
586 test_scheduler_delay_LDADD = \
589 test_service_SOURCES = \
591 test_service_LDADD = \
594 test_strings_SOURCES = \
596 test_strings_LDADD = \
599 test_strings_to_data_SOURCES = \
600 test_strings_to_data.c
601 test_strings_to_data_LDADD = \
605 test_time_SOURCES = \
610 test_speedup_SOURCES = \
612 test_speedup_LDADD = \
615 perf_crypto_hash_SOURCES = \
617 perf_crypto_hash_LDADD = \
620 perf_crypto_ecc_dlog_SOURCES = \
621 perf_crypto_ecc_dlog.c
622 perf_crypto_ecc_dlog_LDADD = \
626 perf_crypto_rsa_SOURCES = \
628 perf_crypto_rsa_LDADD = \
631 perf_crypto_symmetric_SOURCES = \
632 perf_crypto_symmetric.c
633 perf_crypto_symmetric_LDADD = \
636 perf_crypto_asymmetric_SOURCES = \
637 perf_crypto_asymmetric.c
638 perf_crypto_asymmetric_LDADD = \
641 perf_crypto_paillier_SOURCES = \
642 perf_crypto_paillier.c
643 perf_crypto_paillier_LDADD = \
647 perf_malloc_SOURCES = \
649 perf_malloc_LDADD = \
654 test_client_data.conf \
655 test_client_unix.conf \
656 test_configuration_data.conf \
657 test_program_data.conf \
658 test_resolver_api_data.conf \
659 test_service_data.conf \
660 test_speedup_data.conf \