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 \
90 resolver_api.c resolver.h \
124 libgnunetutil_la_LIBADD = \
125 $(GCLIBADD) $(WINLIB) \
131 $(LIBIDN) $(LIBIDN2) \
137 libgnunetutil_la_LDFLAGS = \
141 libgnunetutil_taler_wallet_la_SOURCES = \
142 common_allocation.c \
146 container_multihashmap.c \
147 container_multihashmap32.c \
160 libgnunetutil_taler_wallet_la_LIBADD = \
164 libgnunetutil_taler_wallet_la_LDFLAGS = \
169 GNUNET_ECC = gnunet-ecc
170 GNUNET_SCRYPT = gnunet-scrypt
174 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
176 lib_LTLIBRARIES = libgnunetutil.la
179 gnunet-service-resolver \
189 bin_PROGRAMS += gnunet-qr
194 test_common_logging_dummy
198 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
199 TESTS = $(check_PROGRAMS)
204 gnunet_timeout_SOURCES = \
207 gnunet_service_resolver_SOURCES = \
208 gnunet-service-resolver.c
209 gnunet_service_resolver_LDADD = \
212 if HAVE_GETADDRINFO_A
213 gnunet_service_resolver_LDADD += -lanl
217 gnunet_resolver_SOURCES = \
219 gnunet_resolver_LDADD = \
224 gnunet_ecc_SOURCES = \
228 $(GN_LIBINTL) -lgcrypt
230 gnunet_scrypt_SOURCES = \
232 gnunet_scrypt_LDADD = \
234 $(GN_LIBINTL) -lgcrypt
237 gnunet_config_SOURCES = \
239 gnunet_config_LDADD = \
243 gnunet_uri_SOURCES = \
250 gnunet_qr_SOURCES = \
255 gnunet_qr_LDFLAGS= -lzbar
257 plugin_LTLIBRARIES = \
258 libgnunet_plugin_test.la
260 libgnunet_plugin_test_la_SOURCES = \
262 libgnunet_plugin_test_la_LDFLAGS = \
268 perf_crypto_ecc_dlog \
270 perf_crypto_paillier \
271 perf_crypto_symmetric \
272 perf_crypto_asymmetric \
277 # SSH_USING_TESTS = test_socks.nc
283 $(TEST_CLIENT_UNIX_NC) \
284 test_common_allocation \
286 test_common_logging \
288 test_container_bloomfilter \
290 test_container_meta_data \
291 test_container_multihashmap \
292 test_container_multihashmap32 \
293 test_container_multipeermap \
294 test_container_heap \
295 test_crypto_symmetric \
300 test_crypto_ecdh_eddsa \
301 test_crypto_ecc_dlog \
303 test_crypto_hash_context \
306 test_crypto_paillier \
318 test_resolver_api.nc \
320 test_scheduler_delay \
323 test_strings_to_data \
328 test_os_start_process \
329 test_common_logging_runtime_loglevels
332 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
333 # sequential execution order for them
334 TEST_EXTENSIONS = .nc
335 test_test_client_unix.log: test_client.log
342 test_hexcoder_SOURCES = \
344 test_hexcoder_LDADD = \
352 test_regex_SOURCES = \
357 test_os_start_process_SOURCES = \
358 test_os_start_process.c
359 test_os_start_process_LDADD = \
361 test_os_start_process_DEPENDENCIES = \
364 test_client_nc_SOURCES = \
366 test_client_nc_LDADD = \
369 test_client_unix_nc_SOURCES = \
371 test_client_unix_nc_LDADD = \
374 #test_socks_nc_SOURCES = \
376 #test_socks_nc_LDADD = \
379 test_common_allocation_SOURCES = \
380 test_common_allocation.c
381 test_common_allocation_LDADD = \
384 test_common_endian_SOURCES = \
386 test_common_endian_LDADD = \
389 test_common_logging_SOURCES = \
390 test_common_logging.c
391 test_common_logging_LDADD = \
394 test_common_logging_runtime_loglevels_SOURCES = \
395 test_common_logging_runtime_loglevels.c
396 test_common_logging_runtime_loglevels_LDADD = \
399 test_configuration_SOURCES = \
401 test_configuration_LDADD = \
404 test_container_bloomfilter_SOURCES = \
405 test_container_bloomfilter.c
406 test_container_bloomfilter_LDADD = \
409 test_container_dll_SOURCES = \
411 test_container_dll_LDADD = \
414 test_container_meta_data_SOURCES = \
415 test_container_meta_data.c
416 test_container_meta_data_LDADD = \
419 test_container_multihashmap_SOURCES = \
420 test_container_multihashmap.c
421 test_container_multihashmap_LDADD = \
424 test_container_multihashmap32_SOURCES = \
425 test_container_multihashmap32.c
426 test_container_multihashmap32_LDADD = \
429 test_container_multipeermap_SOURCES = \
430 test_container_multipeermap.c
431 test_container_multipeermap_LDADD = \
434 test_container_heap_SOURCES = \
435 test_container_heap.c
436 test_container_heap_LDADD = \
439 test_crypto_symmetric_SOURCES = \
440 test_crypto_symmetric.c
441 test_crypto_symmetric_LDADD = \
444 test_crypto_crc_SOURCES = \
446 test_crypto_crc_LDADD = \
449 test_crypto_ecdsa_SOURCES = \
451 test_crypto_ecdsa_LDADD = \
455 test_crypto_eddsa_SOURCES = \
457 test_crypto_eddsa_LDADD = \
461 test_crypto_ecc_dlog_SOURCES = \
462 test_crypto_ecc_dlog.c
463 test_crypto_ecc_dlog_LDADD = \
467 test_crypto_ecdhe_SOURCES = \
469 test_crypto_ecdhe_LDADD = \
473 test_crypto_ecdh_eddsa_SOURCES = \
474 test_crypto_ecdh_eddsa.c
475 test_crypto_ecdh_eddsa_LDADD = \
479 test_crypto_hash_SOURCES = \
481 test_crypto_hash_LDADD = \
484 test_crypto_hash_context_SOURCES = \
485 test_crypto_hash_context.c
486 test_crypto_hash_context_LDADD = \
489 test_crypto_hkdf_SOURCES = \
491 test_crypto_hkdf_LDADD = \
494 test_crypto_kdf_SOURCES = \
496 test_crypto_kdf_LDADD = \
497 libgnunetutil.la -lgcrypt
499 test_crypto_paillier_SOURCES = \
500 test_crypto_paillier.c
501 test_crypto_paillier_LDADD = \
505 test_crypto_random_SOURCES = \
507 test_crypto_random_LDADD = \
510 test_crypto_rsa_SOURCES = \
512 test_crypto_rsa_LDADD = \
513 libgnunetutil.la -lgcrypt
515 test_disk_SOURCES = \
520 test_getopt_SOURCES = \
522 test_getopt_LDADD = \
530 test_os_network_SOURCES = \
532 test_os_network_LDADD = \
535 test_peer_SOURCES = \
538 libgnunetutil.la -lgcrypt
540 test_plugin_SOURCES = \
542 test_plugin_LDADD = \
545 test_program_SOURCES = \
547 test_program_LDADD = \
550 test_resolver_api_nc_SOURCES = \
552 test_resolver_api_nc_LDADD = \
555 test_scheduler_SOURCES = \
557 test_scheduler_LDADD = \
560 test_scheduler_delay_SOURCES = \
561 test_scheduler_delay.c
562 test_scheduler_delay_LDADD = \
565 test_service_SOURCES = \
567 test_service_LDADD = \
570 test_strings_SOURCES = \
572 test_strings_LDADD = \
575 test_strings_to_data_SOURCES = \
576 test_strings_to_data.c
577 test_strings_to_data_LDADD = \
581 test_time_SOURCES = \
586 test_speedup_SOURCES = \
588 test_speedup_LDADD = \
591 perf_crypto_hash_SOURCES = \
593 perf_crypto_hash_LDADD = \
596 perf_crypto_ecc_dlog_SOURCES = \
597 perf_crypto_ecc_dlog.c
598 perf_crypto_ecc_dlog_LDADD = \
602 perf_crypto_rsa_SOURCES = \
604 perf_crypto_rsa_LDADD = \
607 perf_crypto_symmetric_SOURCES = \
608 perf_crypto_symmetric.c
609 perf_crypto_symmetric_LDADD = \
612 perf_crypto_asymmetric_SOURCES = \
613 perf_crypto_asymmetric.c
614 perf_crypto_asymmetric_LDADD = \
617 perf_crypto_paillier_SOURCES = \
618 perf_crypto_paillier.c
619 perf_crypto_paillier_LDADD = \
623 perf_malloc_SOURCES = \
625 perf_malloc_LDADD = \
630 test_client_data.conf \
631 test_client_unix.conf \
632 test_configuration_data.conf \
633 test_program_data.conf \
634 test_resolver_api_data.conf \
635 test_service_data.conf \
636 test_speedup_data.conf