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)
124 libgnunetutil_la_SOURCES += \
126 libgnunetutil_la_LIBADD += \
134 libgnunetutil_la_LDFLAGS = \
138 libgnunetutil_taler_wallet_la_SOURCES = \
139 common_allocation.c \
143 container_multihashmap.c \
144 container_multihashmap32.c \
157 libgnunetutil_taler_wallet_la_LIBADD = \
161 libgnunetutil_taler_wallet_la_LDFLAGS = \
166 GNUNET_ECC = gnunet-ecc
167 GNUNET_SCRYPT = gnunet-scrypt
171 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
173 lib_LTLIBRARIES = libgnunetutil.la
176 gnunet-service-resolver \
192 test_common_logging_dummy
196 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
197 TESTS = $(check_PROGRAMS)
203 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
205 gnunet-qr: gnunet-qr.py.in Makefile
206 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
209 gnunet_service_resolver_SOURCES = \
210 gnunet-service-resolver.c
211 gnunet_service_resolver_LDADD = \
216 gnunet_resolver_SOURCES = \
218 gnunet_resolver_LDADD = \
223 gnunet_ecc_SOURCES = \
227 $(GN_LIBINTL) -lgcrypt
229 gnunet_scrypt_SOURCES = \
231 gnunet_scrypt_LDADD = \
233 $(GN_LIBINTL) -lgcrypt
236 gnunet_config_SOURCES = \
238 gnunet_config_LDADD = \
243 gnunet_uri_SOURCES = \
249 plugin_LTLIBRARIES = \
250 libgnunet_plugin_test.la
252 libgnunet_plugin_test_la_SOURCES = \
254 libgnunet_plugin_test_la_LDFLAGS = \
260 perf_crypto_ecc_dlog \
262 perf_crypto_paillier \
263 perf_crypto_symmetric \
264 perf_crypto_asymmetric \
269 # SSH_USING_TESTS = test_socks.nc
275 $(TEST_CLIENT_UNIX_NC) \
276 test_common_allocation \
278 test_common_logging \
280 test_container_bloomfilter \
282 test_container_meta_data \
283 test_container_multihashmap \
284 test_container_multihashmap32 \
285 test_container_multipeermap \
286 test_container_heap \
287 test_crypto_symmetric \
292 test_crypto_ecdh_eddsa \
293 test_crypto_ecc_dlog \
295 test_crypto_hash_context \
298 test_crypto_paillier \
308 test_resolver_api.nc \
310 test_scheduler_delay \
313 test_strings_to_data \
317 test_os_start_process \
318 test_common_logging_runtime_loglevels
321 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
322 # sequential execution order for them
323 TEST_EXTENSIONS = .nc
324 test_test_client_unix.log: test_client.log
332 test_os_start_process_SOURCES = \
333 test_os_start_process.c
334 test_os_start_process_LDADD = \
336 test_os_start_process_DEPENDENCIES = \
340 test_client_nc_SOURCES = \
342 test_client_nc_LDADD = \
345 test_client_unix_nc_SOURCES = \
347 test_client_unix_nc_LDADD = \
350 test_socks_nc_SOURCES = \
352 test_socks_nc_LDADD = \
355 test_common_allocation_SOURCES = \
356 test_common_allocation.c
357 test_common_allocation_LDADD = \
360 test_common_endian_SOURCES = \
362 test_common_endian_LDADD = \
365 test_common_logging_SOURCES = \
366 test_common_logging.c
367 test_common_logging_LDADD = \
370 test_common_logging_runtime_loglevels_SOURCES = \
371 test_common_logging_runtime_loglevels.c
372 test_common_logging_runtime_loglevels_LDADD = \
375 test_configuration_SOURCES = \
377 test_configuration_LDADD = \
380 test_container_bloomfilter_SOURCES = \
381 test_container_bloomfilter.c
382 test_container_bloomfilter_LDADD = \
385 test_container_dll_SOURCES = \
387 test_container_dll_LDADD = \
390 test_container_meta_data_SOURCES = \
391 test_container_meta_data.c
392 test_container_meta_data_LDADD = \
395 test_container_multihashmap_SOURCES = \
396 test_container_multihashmap.c
397 test_container_multihashmap_LDADD = \
400 test_container_multihashmap32_SOURCES = \
401 test_container_multihashmap32.c
402 test_container_multihashmap32_LDADD = \
405 test_container_multipeermap_SOURCES = \
406 test_container_multipeermap.c
407 test_container_multipeermap_LDADD = \
410 test_container_heap_SOURCES = \
411 test_container_heap.c
412 test_container_heap_LDADD = \
415 test_crypto_symmetric_SOURCES = \
416 test_crypto_symmetric.c
417 test_crypto_symmetric_LDADD = \
420 test_crypto_crc_SOURCES = \
422 test_crypto_crc_LDADD = \
425 test_crypto_ecdsa_SOURCES = \
427 test_crypto_ecdsa_LDADD = \
431 test_crypto_eddsa_SOURCES = \
433 test_crypto_eddsa_LDADD = \
437 test_crypto_ecc_dlog_SOURCES = \
438 test_crypto_ecc_dlog.c
439 test_crypto_ecc_dlog_LDADD = \
443 test_crypto_ecdhe_SOURCES = \
445 test_crypto_ecdhe_LDADD = \
449 test_crypto_ecdh_eddsa_SOURCES = \
450 test_crypto_ecdh_eddsa.c
451 test_crypto_ecdh_eddsa_LDADD = \
455 test_crypto_hash_SOURCES = \
457 test_crypto_hash_LDADD = \
460 test_crypto_hash_context_SOURCES = \
461 test_crypto_hash_context.c
462 test_crypto_hash_context_LDADD = \
465 test_crypto_hkdf_SOURCES = \
467 test_crypto_hkdf_LDADD = \
470 test_crypto_kdf_SOURCES = \
472 test_crypto_kdf_LDADD = \
473 libgnunetutil.la -lgcrypt
475 test_crypto_paillier_SOURCES = \
476 test_crypto_paillier.c
477 test_crypto_paillier_LDADD = \
481 test_crypto_random_SOURCES = \
483 test_crypto_random_LDADD = \
486 test_crypto_rsa_SOURCES = \
488 test_crypto_rsa_LDADD = \
489 libgnunetutil.la -lgcrypt
491 test_disk_SOURCES = \
496 test_getopt_SOURCES = \
498 test_getopt_LDADD = \
506 test_os_network_SOURCES = \
508 test_os_network_LDADD = \
511 test_peer_SOURCES = \
514 libgnunetutil.la -lgcrypt
516 test_plugin_SOURCES = \
518 test_plugin_LDADD = \
521 test_program_SOURCES = \
523 test_program_LDADD = \
526 test_resolver_api_nc_SOURCES = \
528 test_resolver_api_nc_LDADD = \
531 test_scheduler_SOURCES = \
533 test_scheduler_LDADD = \
536 test_scheduler_delay_SOURCES = \
537 test_scheduler_delay.c
538 test_scheduler_delay_LDADD = \
541 test_service_SOURCES = \
543 test_service_LDADD = \
546 test_strings_SOURCES = \
548 test_strings_LDADD = \
551 test_strings_to_data_SOURCES = \
552 test_strings_to_data.c
553 test_strings_to_data_LDADD = \
557 test_time_SOURCES = \
562 test_speedup_SOURCES = \
564 test_speedup_LDADD = \
569 test_crypto_abe_SOURCES = \
571 test_crypto_abe_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 = \
617 test_client_data.conf \
618 test_client_unix.conf \
619 test_configuration_data.conf \
620 test_program_data.conf \
621 test_resolver_api_data.conf \
622 test_service_data.conf \
623 test_speedup_data.conf \