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
43 w32cat_SOURCES = w32cat.c
45 gnunet_helper_w32_console_SOURCES = \
46 gnunet-helper-w32-console.c \
47 gnunet-helper-w32-console.h
48 gnunet_helper_w32_console_LDADD = \
51 gnunet_config_diff_SOURCES = \
53 gnunet_config_diff_LDADD = \
56 test_common_logging_dummy_SOURCES = \
57 test_common_logging_dummy.c
58 test_common_logging_dummy_LDADD = \
61 libgnunetutil_la_SOURCES = \
69 configuration_loader.c \
70 container_bloomfilter.c \
72 container_meta_data.c \
73 container_multihashmap.c \
74 container_multishortmap.c \
75 container_multipeermap.c \
76 container_multihashmap32.c \
107 resolver_api.c resolver.h \
115 libgnunetutil_la_LIBADD = \
116 $(GCLIBADD) $(WINLIB) \
120 -lltdl $(Z_LIBS) -lunistring $(XLIB)
122 libgnunetutil_la_LDFLAGS = \
127 libgnunetutil_taler_wallet_la_SOURCES = \
128 common_allocation.c \
132 container_multihashmap.c \
133 container_multihashmap32.c \
146 libgnunetutil_taler_wallet_la_LIBADD = \
150 libgnunetutil_taler_wallet_la_LDFLAGS = \
155 GNUNET_ECC = gnunet-ecc
156 GNUNET_SCRYPT = gnunet-scrypt
160 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
162 lib_LTLIBRARIES = libgnunetutil.la
165 gnunet-service-resolver \
181 test_common_logging_dummy
185 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
186 TESTS = $(check_PROGRAMS)
192 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
194 gnunet-qr: gnunet-qr.py.in Makefile
195 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
198 gnunet_service_resolver_SOURCES = \
199 gnunet-service-resolver.c
200 gnunet_service_resolver_LDADD = \
205 gnunet_resolver_SOURCES = \
207 gnunet_resolver_LDADD = \
212 gnunet_ecc_SOURCES = \
216 $(GN_LIBINTL) -lgcrypt
218 gnunet_scrypt_SOURCES = \
220 gnunet_scrypt_LDADD = \
222 $(GN_LIBINTL) -lgcrypt
225 gnunet_config_SOURCES = \
227 gnunet_config_LDADD = \
232 gnunet_uri_SOURCES = \
238 plugin_LTLIBRARIES = \
239 libgnunet_plugin_test.la
241 libgnunet_plugin_test_la_SOURCES = \
243 libgnunet_plugin_test_la_LDFLAGS = \
249 perf_crypto_ecc_dlog \
251 perf_crypto_paillier \
252 perf_crypto_symmetric \
253 perf_crypto_asymmetric \
258 # SSH_USING_TESTS = test_socks.nc
264 $(TEST_CLIENT_UNIX_NC) \
265 test_common_allocation \
267 test_common_logging \
269 test_container_bloomfilter \
271 test_container_meta_data \
272 test_container_multihashmap \
273 test_container_multihashmap32 \
274 test_container_multipeermap \
275 test_container_heap \
276 test_crypto_symmetric \
281 test_crypto_ecdh_eddsa \
282 test_crypto_ecc_dlog \
284 test_crypto_hash_context \
287 test_crypto_paillier \
297 test_resolver_api.nc \
299 test_scheduler_delay \
302 test_strings_to_data \
306 test_os_start_process \
307 test_common_logging_runtime_loglevels
310 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
311 # sequential execution order for them
312 TEST_EXTENSIONS = .nc
313 test_test_client_unix.log: test_client.log
321 test_os_start_process_SOURCES = \
322 test_os_start_process.c
323 test_os_start_process_LDADD = \
325 test_os_start_process_DEPENDENCIES = \
329 test_client_nc_SOURCES = \
331 test_client_nc_LDADD = \
334 test_client_unix_nc_SOURCES = \
336 test_client_unix_nc_LDADD = \
339 test_socks_nc_SOURCES = \
341 test_socks_nc_LDADD = \
344 test_common_allocation_SOURCES = \
345 test_common_allocation.c
346 test_common_allocation_LDADD = \
349 test_common_endian_SOURCES = \
351 test_common_endian_LDADD = \
354 test_common_logging_SOURCES = \
355 test_common_logging.c
356 test_common_logging_LDADD = \
359 test_common_logging_runtime_loglevels_SOURCES = \
360 test_common_logging_runtime_loglevels.c
361 test_common_logging_runtime_loglevels_LDADD = \
364 test_configuration_SOURCES = \
366 test_configuration_LDADD = \
369 test_container_bloomfilter_SOURCES = \
370 test_container_bloomfilter.c
371 test_container_bloomfilter_LDADD = \
374 test_container_dll_SOURCES = \
376 test_container_dll_LDADD = \
379 test_container_meta_data_SOURCES = \
380 test_container_meta_data.c
381 test_container_meta_data_LDADD = \
384 test_container_multihashmap_SOURCES = \
385 test_container_multihashmap.c
386 test_container_multihashmap_LDADD = \
389 test_container_multihashmap32_SOURCES = \
390 test_container_multihashmap32.c
391 test_container_multihashmap32_LDADD = \
394 test_container_multipeermap_SOURCES = \
395 test_container_multipeermap.c
396 test_container_multipeermap_LDADD = \
399 test_container_heap_SOURCES = \
400 test_container_heap.c
401 test_container_heap_LDADD = \
404 test_crypto_symmetric_SOURCES = \
405 test_crypto_symmetric.c
406 test_crypto_symmetric_LDADD = \
409 test_crypto_crc_SOURCES = \
411 test_crypto_crc_LDADD = \
414 test_crypto_ecdsa_SOURCES = \
416 test_crypto_ecdsa_LDADD = \
420 test_crypto_eddsa_SOURCES = \
422 test_crypto_eddsa_LDADD = \
426 test_crypto_ecc_dlog_SOURCES = \
427 test_crypto_ecc_dlog.c
428 test_crypto_ecc_dlog_LDADD = \
432 test_crypto_ecdhe_SOURCES = \
434 test_crypto_ecdhe_LDADD = \
438 test_crypto_ecdh_eddsa_SOURCES = \
439 test_crypto_ecdh_eddsa.c
440 test_crypto_ecdh_eddsa_LDADD = \
444 test_crypto_hash_SOURCES = \
446 test_crypto_hash_LDADD = \
449 test_crypto_hash_context_SOURCES = \
450 test_crypto_hash_context.c
451 test_crypto_hash_context_LDADD = \
454 test_crypto_hkdf_SOURCES = \
456 test_crypto_hkdf_LDADD = \
459 test_crypto_kdf_SOURCES = \
461 test_crypto_kdf_LDADD = \
462 libgnunetutil.la -lgcrypt
464 test_crypto_paillier_SOURCES = \
465 test_crypto_paillier.c
466 test_crypto_paillier_LDADD = \
470 test_crypto_random_SOURCES = \
472 test_crypto_random_LDADD = \
475 test_crypto_rsa_SOURCES = \
477 test_crypto_rsa_LDADD = \
478 libgnunetutil.la -lgcrypt
480 test_disk_SOURCES = \
485 test_getopt_SOURCES = \
487 test_getopt_LDADD = \
495 test_os_network_SOURCES = \
497 test_os_network_LDADD = \
500 test_peer_SOURCES = \
503 libgnunetutil.la -lgcrypt
505 test_plugin_SOURCES = \
507 test_plugin_LDADD = \
510 test_program_SOURCES = \
512 test_program_LDADD = \
515 test_resolver_api_nc_SOURCES = \
517 test_resolver_api_nc_LDADD = \
520 test_scheduler_SOURCES = \
522 test_scheduler_LDADD = \
525 test_scheduler_delay_SOURCES = \
526 test_scheduler_delay.c
527 test_scheduler_delay_LDADD = \
530 test_service_SOURCES = \
532 test_service_LDADD = \
535 test_strings_SOURCES = \
537 test_strings_LDADD = \
540 test_strings_to_data_SOURCES = \
541 test_strings_to_data.c
542 test_strings_to_data_LDADD = \
546 test_time_SOURCES = \
551 test_speedup_SOURCES = \
553 test_speedup_LDADD = \
556 perf_crypto_hash_SOURCES = \
558 perf_crypto_hash_LDADD = \
561 perf_crypto_ecc_dlog_SOURCES = \
562 perf_crypto_ecc_dlog.c
563 perf_crypto_ecc_dlog_LDADD = \
567 perf_crypto_rsa_SOURCES = \
569 perf_crypto_rsa_LDADD = \
572 perf_crypto_symmetric_SOURCES = \
573 perf_crypto_symmetric.c
574 perf_crypto_symmetric_LDADD = \
577 perf_crypto_asymmetric_SOURCES = \
578 perf_crypto_asymmetric.c
579 perf_crypto_asymmetric_LDADD = \
582 perf_crypto_paillier_SOURCES = \
583 perf_crypto_paillier.c
584 perf_crypto_paillier_LDADD = \
588 perf_malloc_SOURCES = \
590 perf_malloc_LDADD = \
595 test_client_data.conf \
596 test_client_unix.conf \
597 test_configuration_data.conf \
598 test_program_data.conf \
599 test_resolver_api_data.conf \
600 test_service_data.conf \
601 test_speedup_data.conf \