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 SERVER_CLIENT_UNIX = test_server_with_client_unix
34 TEST_CLIENT_UNIC_NC = test_client_unix.nc
40 AM_CFLAGS = --coverage -O0
44 w32cat_SOURCES = w32cat.c
46 gnunet_helper_w32_console_SOURCES = \
47 gnunet-helper-w32-console.c \
48 gnunet-helper-w32-console.h
49 gnunet_helper_w32_console_LDADD = \
52 gnunet_config_diff_SOURCES = \
54 gnunet_config_diff_LDADD = \
57 test_common_logging_dummy_SOURCES = \
58 test_common_logging_dummy.c
59 test_common_logging_dummy_LDADD = \
62 libgnunetutil_la_SOURCES = \
70 configuration_loader.c \
72 container_bloomfilter.c \
74 container_meta_data.c \
75 container_multihashmap.c \
76 container_multishortmap.c \
77 container_multipeermap.c \
78 container_multihashmap32.c \
109 resolver_api.c resolver.h \
123 libgnunetutil_la_LIBADD = \
124 $(GCLIBADD) $(WINLIB) \
128 -lltdl $(Z_LIBS) -lunistring $(XLIB)
130 libgnunetutil_la_LDFLAGS = \
135 libgnunetutil_taler_wallet_la_SOURCES = \
136 common_allocation.c \
140 container_multihashmap.c \
141 container_multihashmap32.c \
154 libgnunetutil_taler_wallet_la_LIBADD = \
158 libgnunetutil_taler_wallet_la_LDFLAGS = \
163 GNUNET_ECC = gnunet-ecc
164 GNUNET_SCRYPT = gnunet-scrypt
168 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
170 lib_LTLIBRARIES = libgnunetutil.la
173 gnunet-service-resolver \
189 test_common_logging_dummy
193 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
194 TESTS = $(check_PROGRAMS)
200 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
202 gnunet-qr: gnunet-qr.py.in Makefile
203 $(do_subst) < $(top_srcdir)/src/util/gnunet-qr.py.in > gnunet-qr
206 gnunet_service_resolver_SOURCES = \
207 gnunet-service-resolver.c
208 gnunet_service_resolver_LDADD = \
213 gnunet_resolver_SOURCES = \
215 gnunet_resolver_LDADD = \
220 gnunet_ecc_SOURCES = \
224 $(GN_LIBINTL) -lgcrypt
226 gnunet_scrypt_SOURCES = \
228 gnunet_scrypt_LDADD = \
230 $(GN_LIBINTL) -lgcrypt
233 gnunet_config_SOURCES = \
235 gnunet_config_LDADD = \
240 gnunet_uri_SOURCES = \
246 plugin_LTLIBRARIES = \
247 libgnunet_plugin_test.la
249 libgnunet_plugin_test_la_SOURCES = \
251 libgnunet_plugin_test_la_LDFLAGS = \
257 perf_crypto_ecc_dlog \
259 perf_crypto_paillier \
260 perf_crypto_symmetric \
261 perf_crypto_asymmetric \
266 SSH_USING_TESTS = test_socks.nc
272 $(TEST_CLIENT_UNIX_NC) \
274 test_common_allocation \
276 test_common_logging \
278 test_container_bloomfilter \
280 test_container_meta_data \
281 test_container_multihashmap \
282 test_container_multihashmap32 \
283 test_container_multipeermap \
284 test_container_heap \
285 test_crypto_symmetric \
290 test_crypto_ecdh_eddsa \
291 test_crypto_ecc_dlog \
293 test_crypto_hash_context \
296 test_crypto_paillier \
302 test_connection_addressing.nc \
303 test_connection_receive_cancel.nc \
304 test_connection_timeout.nc \
305 test_connection_timeout_no_connect.nc \
306 test_connection_transmit_cancel.nc \
312 test_resolver_api.nc \
314 test_scheduler_delay \
316 test_server_disconnect.nc \
317 test_server_with_client.nc \
318 test_server_mst_interrupt.nc \
319 $(SERVER_CLIENT_UNIX) \
322 test_strings_to_data \
326 test_os_start_process \
327 test_common_logging_runtime_loglevels
330 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
331 # sequential execution order for them
332 TEST_EXTENSIONS = .nc
333 test_connection.log: test_client.log
334 test_connection_addressing.log: test_connection.log
335 test_connection_timeout_no_connect.log: test_connection_addressing.log
336 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
337 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
338 test_connection_timeout.log: test_connection_receive_cancel.log
339 test_resolver_api.log: test_connection_timeout.log
340 test_server.log: test_resolver_api.log
341 test_server_disconnect.log: test_server.log
342 test_server_with_client.log: test_server_disconnect.log
343 test_server_mst_interrupt.log: test_server_with_client.log
344 test_client_unix.log: test_server_mst_interrupt.log
352 test_os_start_process_SOURCES = \
353 test_os_start_process.c
354 test_os_start_process_LDADD = \
356 test_os_start_process_DEPENDENCIES = \
360 test_client_nc_SOURCES = \
362 test_client_nc_LDADD = \
365 test_client_unix_nc_SOURCES = \
367 test_client_unix_nc_LDADD = \
370 test_socks_nc_SOURCES = \
372 test_socks_nc_LDADD = \
375 test_common_allocation_SOURCES = \
376 test_common_allocation.c
377 test_common_allocation_LDADD = \
380 test_common_endian_SOURCES = \
382 test_common_endian_LDADD = \
385 test_common_logging_SOURCES = \
386 test_common_logging.c
387 test_common_logging_LDADD = \
390 test_common_logging_runtime_loglevels_SOURCES = \
391 test_common_logging_runtime_loglevels.c
392 test_common_logging_runtime_loglevels_LDADD = \
395 test_configuration_SOURCES = \
397 test_configuration_LDADD = \
400 test_container_bloomfilter_SOURCES = \
401 test_container_bloomfilter.c
402 test_container_bloomfilter_LDADD = \
405 test_container_dll_SOURCES = \
407 test_container_dll_LDADD = \
410 test_container_meta_data_SOURCES = \
411 test_container_meta_data.c
412 test_container_meta_data_LDADD = \
415 test_container_multihashmap_SOURCES = \
416 test_container_multihashmap.c
417 test_container_multihashmap_LDADD = \
420 test_container_multihashmap32_SOURCES = \
421 test_container_multihashmap32.c
422 test_container_multihashmap32_LDADD = \
425 test_container_multipeermap_SOURCES = \
426 test_container_multipeermap.c
427 test_container_multipeermap_LDADD = \
430 test_container_heap_SOURCES = \
431 test_container_heap.c
432 test_container_heap_LDADD = \
435 test_crypto_symmetric_SOURCES = \
436 test_crypto_symmetric.c
437 test_crypto_symmetric_LDADD = \
440 test_crypto_crc_SOURCES = \
442 test_crypto_crc_LDADD = \
445 test_crypto_ecdsa_SOURCES = \
447 test_crypto_ecdsa_LDADD = \
451 test_crypto_eddsa_SOURCES = \
453 test_crypto_eddsa_LDADD = \
457 test_crypto_ecc_dlog_SOURCES = \
458 test_crypto_ecc_dlog.c
459 test_crypto_ecc_dlog_LDADD = \
463 test_crypto_ecdhe_SOURCES = \
465 test_crypto_ecdhe_LDADD = \
469 test_crypto_ecdh_eddsa_SOURCES = \
470 test_crypto_ecdh_eddsa.c
471 test_crypto_ecdh_eddsa_LDADD = \
475 test_crypto_hash_SOURCES = \
477 test_crypto_hash_LDADD = \
480 test_crypto_hash_context_SOURCES = \
481 test_crypto_hash_context.c
482 test_crypto_hash_context_LDADD = \
485 test_crypto_hkdf_SOURCES = \
487 test_crypto_hkdf_LDADD = \
490 test_crypto_kdf_SOURCES = \
492 test_crypto_kdf_LDADD = \
493 libgnunetutil.la -lgcrypt
495 test_crypto_paillier_SOURCES = \
496 test_crypto_paillier.c
497 test_crypto_paillier_LDADD = \
501 test_crypto_random_SOURCES = \
503 test_crypto_random_LDADD = \
506 test_crypto_rsa_SOURCES = \
508 test_crypto_rsa_LDADD = \
509 libgnunetutil.la -lgcrypt
511 test_disk_SOURCES = \
516 test_getopt_SOURCES = \
518 test_getopt_LDADD = \
521 test_connection_nc_SOURCES = \
523 test_connection_nc_LDADD = \
526 test_connection_addressing_nc_SOURCES = \
527 test_connection_addressing.c
528 test_connection_addressing_nc_LDADD = \
531 test_connection_receive_cancel_nc_SOURCES = \
532 test_connection_receive_cancel.c
533 test_connection_receive_cancel_nc_LDADD = \
536 test_connection_timeout_nc_SOURCES = \
537 test_connection_timeout.c
538 test_connection_timeout_nc_LDADD = \
541 test_connection_timeout_no_connect_nc_SOURCES = \
542 test_connection_timeout_no_connect.c
543 test_connection_timeout_no_connect_nc_LDADD = \
546 test_connection_transmit_cancel_nc_SOURCES = \
547 test_connection_transmit_cancel.c
548 test_connection_transmit_cancel_nc_LDADD = \
556 test_os_network_SOURCES = \
558 test_os_network_LDADD = \
561 test_peer_SOURCES = \
564 libgnunetutil.la -lgcrypt
566 test_plugin_SOURCES = \
568 test_plugin_LDADD = \
571 test_program_SOURCES = \
573 test_program_LDADD = \
576 test_resolver_api_nc_SOURCES = \
578 test_resolver_api_nc_LDADD = \
581 test_scheduler_SOURCES = \
583 test_scheduler_LDADD = \
586 test_scheduler_delay_SOURCES = \
587 test_scheduler_delay.c
588 test_scheduler_delay_LDADD = \
591 test_server_mst_interrupt_nc_SOURCES = \
592 test_server_mst_interrupt.c
593 test_server_mst_interrupt_nc_LDADD = \
596 test_server_nc_SOURCES = \
598 test_server_nc_LDADD = \
601 test_server_disconnect_nc_SOURCES = \
602 test_server_disconnect.c
603 test_server_disconnect_nc_LDADD = \
606 test_server_with_client_nc_SOURCES = \
607 test_server_with_client.c
608 test_server_with_client_nc_LDADD = \
611 test_server_with_client_unix_SOURCES = \
612 test_server_with_client_unix.c
613 test_server_with_client_unix_LDADD = \
617 test_service_SOURCES = \
619 test_service_LDADD = \
622 test_strings_SOURCES = \
624 test_strings_LDADD = \
628 test_strings_to_data_SOURCES = \
629 test_strings_to_data.c
630 test_strings_to_data_LDADD = \
634 test_time_SOURCES = \
639 test_speedup_SOURCES = \
641 test_speedup_LDADD = \
644 perf_crypto_hash_SOURCES = \
646 perf_crypto_hash_LDADD = \
649 perf_crypto_ecc_dlog_SOURCES = \
650 perf_crypto_ecc_dlog.c
651 perf_crypto_ecc_dlog_LDADD = \
655 perf_crypto_rsa_SOURCES = \
657 perf_crypto_rsa_LDADD = \
660 perf_crypto_symmetric_SOURCES = \
661 perf_crypto_symmetric.c
662 perf_crypto_symmetric_LDADD = \
665 perf_crypto_asymmetric_SOURCES = \
666 perf_crypto_asymmetric.c
667 perf_crypto_asymmetric_LDADD = \
670 perf_crypto_paillier_SOURCES = \
671 perf_crypto_paillier.c
672 perf_crypto_paillier_LDADD = \
676 perf_malloc_SOURCES = \
678 perf_malloc_LDADD = \
683 test_client_data.conf \
684 test_client_unix.conf \
685 test_configuration_data.conf \
686 test_program_data.conf \
687 test_resolver_api_data.conf \
688 test_service_data.conf \
689 test_speedup_data.conf \