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 = \
48 configuration_loader.c \
50 container_bloomfilter.c \
52 container_meta_data.c \
53 container_multihashmap.c \
54 container_multishortmap.c \
55 container_multiuuidmap.c \
56 container_multipeermap.c \
57 container_multihashmap32.c \
92 resolver_api.c resolver.h \
101 speedup.c speedup.h \
126 libgnunetutil_la_LIBADD = \
127 $(GCLIBADD) $(WINLIB) \
133 $(LIBIDN) $(LIBIDN2) \
140 libgnunetutil_la_LDFLAGS = \
145 GNUNET_ECC = gnunet-ecc
146 GNUNET_SCRYPT = gnunet-scrypt
149 lib_LTLIBRARIES = libgnunetutil.la
152 gnunet-service-resolver \
163 bin_PROGRAMS += gnunet-qr
168 test_common_logging_dummy
172 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
173 TESTS = $(check_PROGRAMS)
176 gnunet_timeout_SOURCES = \
179 gnunet_service_resolver_SOURCES = \
180 gnunet-service-resolver.c
181 gnunet_service_resolver_LDADD = \
184 if HAVE_GETADDRINFO_A
185 gnunet_service_resolver_LDADD += -lanl
189 gnunet_resolver_SOURCES = \
191 gnunet_resolver_LDADD = \
195 gnunet_crypto_tvg_SOURCES = \
197 gnunet_crypto_tvg_LDADD = \
199 $(GN_LIBINTL) -lgcrypt
201 gnunet_ecc_SOURCES = \
205 $(GN_LIBINTL) -lgcrypt
207 gnunet_scrypt_SOURCES = \
209 gnunet_scrypt_LDADD = \
211 $(GN_LIBINTL) -lgcrypt
214 gnunet_config_SOURCES = \
216 gnunet_config_LDADD = \
220 gnunet_uri_SOURCES = \
227 gnunet_qr_SOURCES = \
232 gnunet_qr_LDFLAGS= -lzbar
234 plugin_LTLIBRARIES = \
235 libgnunet_plugin_test.la
237 libgnunet_plugin_test_la_SOURCES = \
239 libgnunet_plugin_test_la_LDFLAGS = \
245 perf_crypto_ecc_dlog \
247 perf_crypto_paillier \
248 perf_crypto_symmetric \
249 perf_crypto_asymmetric \
256 # SSH_USING_TESTS = test_socks.nc
262 $(TEST_CLIENT_UNIX_NC) \
263 test_common_allocation \
265 test_common_logging \
267 test_container_bloomfilter \
269 test_container_meta_data \
270 test_container_multihashmap \
271 test_container_multihashmap32 \
272 test_container_multipeermap \
273 test_container_heap \
274 test_crypto_symmetric \
279 test_crypto_ecdh_eddsa \
280 test_crypto_ecdh_ecdsa \
281 test_crypto_ecc_dlog \
283 test_crypto_hash_context \
286 test_crypto_paillier \
298 test_resolver_api.nc \
300 test_scheduler_delay \
303 test_strings_to_data \
308 test_os_start_process \
309 test_common_logging_runtime_loglevels
312 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
313 # sequential execution order for them
314 TEST_EXTENSIONS = .nc
315 test_test_client_unix.log: test_client.log
322 test_hexcoder_SOURCES = \
324 test_hexcoder_LDADD = \
332 test_regex_SOURCES = \
337 test_os_start_process_SOURCES = \
338 test_os_start_process.c
339 test_os_start_process_LDADD = \
341 test_os_start_process_DEPENDENCIES = \
344 test_client_nc_SOURCES = \
346 test_client_nc_LDADD = \
349 test_client_unix_nc_SOURCES = \
351 test_client_unix_nc_LDADD = \
354 #test_socks_nc_SOURCES = \
356 #test_socks_nc_LDADD = \
359 test_common_allocation_SOURCES = \
360 test_common_allocation.c
361 test_common_allocation_LDADD = \
364 test_common_endian_SOURCES = \
366 test_common_endian_LDADD = \
369 test_common_logging_SOURCES = \
370 test_common_logging.c
371 test_common_logging_LDADD = \
374 test_common_logging_runtime_loglevels_SOURCES = \
375 test_common_logging_runtime_loglevels.c
376 test_common_logging_runtime_loglevels_LDADD = \
379 test_configuration_SOURCES = \
381 test_configuration_LDADD = \
384 test_container_bloomfilter_SOURCES = \
385 test_container_bloomfilter.c
386 test_container_bloomfilter_LDADD = \
389 test_container_dll_SOURCES = \
391 test_container_dll_LDADD = \
394 test_container_meta_data_SOURCES = \
395 test_container_meta_data.c
396 test_container_meta_data_LDADD = \
399 test_container_multihashmap_SOURCES = \
400 test_container_multihashmap.c
401 test_container_multihashmap_LDADD = \
404 test_container_multihashmap32_SOURCES = \
405 test_container_multihashmap32.c
406 test_container_multihashmap32_LDADD = \
409 test_container_multipeermap_SOURCES = \
410 test_container_multipeermap.c
411 test_container_multipeermap_LDADD = \
414 test_container_heap_SOURCES = \
415 test_container_heap.c
416 test_container_heap_LDADD = \
419 test_crypto_symmetric_SOURCES = \
420 test_crypto_symmetric.c
421 test_crypto_symmetric_LDADD = \
424 test_crypto_crc_SOURCES = \
426 test_crypto_crc_LDADD = \
429 test_crypto_ecdsa_SOURCES = \
431 test_crypto_ecdsa_LDADD = \
435 test_crypto_eddsa_SOURCES = \
437 test_crypto_eddsa_LDADD = \
441 test_crypto_ecc_dlog_SOURCES = \
442 test_crypto_ecc_dlog.c
443 test_crypto_ecc_dlog_LDADD = \
447 test_crypto_ecdhe_SOURCES = \
449 test_crypto_ecdhe_LDADD = \
453 test_crypto_ecdh_eddsa_SOURCES = \
454 test_crypto_ecdh_eddsa.c
455 test_crypto_ecdh_eddsa_LDADD = \
459 test_crypto_ecdh_ecdsa_SOURCES = \
460 test_crypto_ecdh_ecdsa.c
461 test_crypto_ecdh_ecdsa_LDADD = \
466 test_crypto_hash_SOURCES = \
468 test_crypto_hash_LDADD = \
471 test_crypto_hash_context_SOURCES = \
472 test_crypto_hash_context.c
473 test_crypto_hash_context_LDADD = \
476 test_crypto_hkdf_SOURCES = \
478 test_crypto_hkdf_LDADD = \
481 test_crypto_kdf_SOURCES = \
483 test_crypto_kdf_LDADD = \
484 libgnunetutil.la -lgcrypt
486 test_crypto_paillier_SOURCES = \
487 test_crypto_paillier.c
488 test_crypto_paillier_LDADD = \
492 test_crypto_random_SOURCES = \
494 test_crypto_random_LDADD = \
497 test_crypto_rsa_SOURCES = \
499 test_crypto_rsa_LDADD = \
500 libgnunetutil.la -lgcrypt
502 test_disk_SOURCES = \
507 test_getopt_SOURCES = \
509 test_getopt_LDADD = \
517 test_os_network_SOURCES = \
519 test_os_network_LDADD = \
522 test_peer_SOURCES = \
525 libgnunetutil.la -lgcrypt
527 test_plugin_SOURCES = \
529 test_plugin_LDADD = \
532 test_program_SOURCES = \
534 test_program_LDADD = \
537 test_resolver_api_nc_SOURCES = \
539 test_resolver_api_nc_LDADD = \
542 test_scheduler_SOURCES = \
544 test_scheduler_LDADD = \
547 test_scheduler_delay_SOURCES = \
548 test_scheduler_delay.c
549 test_scheduler_delay_LDADD = \
552 test_service_SOURCES = \
554 test_service_LDADD = \
557 test_strings_SOURCES = \
559 test_strings_LDADD = \
562 test_strings_to_data_SOURCES = \
563 test_strings_to_data.c
564 test_strings_to_data_LDADD = \
568 test_time_SOURCES = \
573 test_speedup_SOURCES = \
575 test_speedup_LDADD = \
578 perf_crypto_hash_SOURCES = \
580 perf_crypto_hash_LDADD = \
583 perf_crypto_ecc_dlog_SOURCES = \
584 perf_crypto_ecc_dlog.c
585 perf_crypto_ecc_dlog_LDADD = \
589 perf_crypto_rsa_SOURCES = \
591 perf_crypto_rsa_LDADD = \
594 perf_crypto_symmetric_SOURCES = \
595 perf_crypto_symmetric.c
596 perf_crypto_symmetric_LDADD = \
599 perf_crypto_asymmetric_SOURCES = \
600 perf_crypto_asymmetric.c
601 perf_crypto_asymmetric_LDADD = \
604 perf_crypto_paillier_SOURCES = \
605 perf_crypto_paillier.c
606 perf_crypto_paillier_LDADD = \
610 perf_malloc_SOURCES = \
612 perf_malloc_LDADD = \
620 perf_scheduler_SOURCES = \
622 perf_scheduler_LDADD = \
627 test_client_data.conf \
628 test_client_unix.conf \
629 test_configuration_data.conf \
630 test_program_data.conf \
631 test_resolver_api_data.conf \
632 test_service_data.conf \
633 test_speedup_data.conf