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
37 AM_CFLAGS = --coverage -O0
41 w32cat_SOURCES = w32cat.c
43 gnunet_helper_w32_console_SOURCES = \
44 gnunet-helper-w32-console.c \
45 gnunet-helper-w32-console.h
46 gnunet_helper_w32_console_LDADD = \
49 gnunet_config_diff_SOURCES = \
51 gnunet_config_diff_LDADD = \
54 test_common_logging_dummy_SOURCES = \
55 test_common_logging_dummy.c
56 test_common_logging_dummy_LDADD = \
59 libgnunetutil_la_SOURCES = \
68 configuration_loader.c \
70 container_bloomfilter.c \
72 container_meta_data.c \
73 container_multihashmap.c \
74 container_multipeermap.c \
75 container_multihashmap32.c \
105 resolver_api.c resolver.h \
119 libgnunetutil_la_LIBADD = \
120 $(GCLIBADD) $(WINLIB) \
124 -lltdl $(Z_LIBS) -lunistring $(XLIB)
126 libgnunetutil_la_LDFLAGS = \
131 libgnunetutil_taler_wallet_la_SOURCES = \
132 common_allocation.c \
136 container_multihashmap.c \
137 container_multihashmap32.c \
150 libgnunetutil_taler_wallet_la_LIBADD = \
154 libgnunetutil_taler_wallet_la_LDFLAGS = \
159 GNUNET_ECC = gnunet-ecc
160 GNUNET_SCRYPT = gnunet-scrypt
164 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
166 lib_LTLIBRARIES = libgnunetutil.la
169 gnunet-service-resolver \
185 test_common_logging_dummy
189 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
190 TESTS = $(check_PROGRAMS)
196 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
198 gnunet-qr: gnunet-qr.py.in Makefile
199 $(do_subst) < gnunet-qr.py.in > gnunet-qr
202 gnunet_service_resolver_SOURCES = \
203 gnunet-service-resolver.c
204 gnunet_service_resolver_LDADD = \
209 gnunet_resolver_SOURCES = \
211 gnunet_resolver_LDADD = \
216 gnunet_ecc_SOURCES = \
220 $(GN_LIBINTL) -lgcrypt
222 gnunet_scrypt_SOURCES = \
224 gnunet_scrypt_LDADD = \
226 $(GN_LIBINTL) -lgcrypt
229 gnunet_config_SOURCES = \
231 gnunet_config_LDADD = \
236 gnunet_uri_SOURCES = \
242 plugin_LTLIBRARIES = \
243 libgnunet_plugin_test.la
245 libgnunet_plugin_test_la_SOURCES = \
247 libgnunet_plugin_test_la_LDFLAGS = \
253 perf_crypto_ecc_dlog \
255 perf_crypto_paillier \
256 perf_crypto_symmetric \
257 perf_crypto_asymmetric \
262 SSH_USING_TESTS = test_socks.nc
268 test_client_unix.nc \
270 test_common_allocation \
272 test_common_logging \
274 test_container_bloomfilter \
275 test_container_meta_data \
276 test_container_multihashmap \
277 test_container_multihashmap32 \
278 test_container_multipeermap \
279 test_container_heap \
280 test_crypto_symmetric \
285 test_crypto_ecdh_eddsa \
286 test_crypto_ecc_dlog \
288 test_crypto_hash_context \
291 test_crypto_paillier \
297 test_connection_addressing.nc \
298 test_connection_receive_cancel.nc \
299 test_connection_timeout.nc \
300 test_connection_timeout_no_connect.nc \
301 test_connection_transmit_cancel.nc \
307 test_resolver_api.nc \
309 test_scheduler_delay \
311 test_server_disconnect.nc \
312 test_server_with_client.nc \
313 test_server_mst_interrupt.nc \
314 $(SERVER_CLIENT_UNIX) \
317 test_strings_to_data \
321 test_os_start_process \
322 test_common_logging_runtime_loglevels
325 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
326 # sequential execution order for them
327 TEST_EXTENSIONS = .nc
328 test_connection.log: test_client.log
329 test_connection_addressing.log: test_connection.log
330 test_connection_timeout_no_connect.log: test_connection_addressing.log
331 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
332 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
333 test_connection_timeout.log: test_connection_receive_cancel.log
334 test_resolver_api.log: test_connection_timeout.log
335 test_server.log: test_resolver_api.log
336 test_server_disconnect.log: test_server.log
337 test_server_with_client.log: test_server_disconnect.log
338 test_server_mst_interrupt.log: test_server_with_client.log
339 test_client_unix.log: test_server_mst_interrupt.log
347 test_os_start_process_SOURCES = \
348 test_os_start_process.c
349 test_os_start_process_LDADD = \
351 test_os_start_process_DEPENDENCIES = \
355 test_client_nc_SOURCES = \
357 test_client_nc_LDADD = \
360 test_client_unix_nc_SOURCES = \
362 test_client_unix_nc_LDADD = \
365 test_socks_nc_SOURCES = \
367 test_socks_nc_LDADD = \
370 test_common_allocation_SOURCES = \
371 test_common_allocation.c
372 test_common_allocation_LDADD = \
375 test_common_endian_SOURCES = \
377 test_common_endian_LDADD = \
380 test_common_logging_SOURCES = \
381 test_common_logging.c
382 test_common_logging_LDADD = \
385 test_common_logging_runtime_loglevels_SOURCES = \
386 test_common_logging_runtime_loglevels.c
387 test_common_logging_runtime_loglevels_LDADD = \
390 test_configuration_SOURCES = \
392 test_configuration_LDADD = \
395 test_container_bloomfilter_SOURCES = \
396 test_container_bloomfilter.c
397 test_container_bloomfilter_LDADD = \
400 test_container_meta_data_SOURCES = \
401 test_container_meta_data.c
402 test_container_meta_data_LDADD = \
403 libgnunetutil.la -lextractor
405 test_container_multihashmap_SOURCES = \
406 test_container_multihashmap.c
407 test_container_multihashmap_LDADD = \
410 test_container_multihashmap32_SOURCES = \
411 test_container_multihashmap32.c
412 test_container_multihashmap32_LDADD = \
415 test_container_multipeermap_SOURCES = \
416 test_container_multipeermap.c
417 test_container_multipeermap_LDADD = \
420 test_container_heap_SOURCES = \
421 test_container_heap.c
422 test_container_heap_LDADD = \
425 test_crypto_symmetric_SOURCES = \
426 test_crypto_symmetric.c
427 test_crypto_symmetric_LDADD = \
430 test_crypto_crc_SOURCES = \
432 test_crypto_crc_LDADD = \
435 test_crypto_ecdsa_SOURCES = \
437 test_crypto_ecdsa_LDADD = \
441 test_crypto_eddsa_SOURCES = \
443 test_crypto_eddsa_LDADD = \
447 test_crypto_ecc_dlog_SOURCES = \
448 test_crypto_ecc_dlog.c
449 test_crypto_ecc_dlog_LDADD = \
453 test_crypto_ecdhe_SOURCES = \
455 test_crypto_ecdhe_LDADD = \
459 test_crypto_ecdh_eddsa_SOURCES = \
460 test_crypto_ecdh_eddsa.c
461 test_crypto_ecdh_eddsa_LDADD = \
465 test_crypto_hash_SOURCES = \
467 test_crypto_hash_LDADD = \
470 test_crypto_hash_context_SOURCES = \
471 test_crypto_hash_context.c
472 test_crypto_hash_context_LDADD = \
475 test_crypto_hkdf_SOURCES = \
477 test_crypto_hkdf_LDADD = \
480 test_crypto_kdf_SOURCES = \
482 test_crypto_kdf_LDADD = \
483 libgnunetutil.la -lgcrypt
485 test_crypto_paillier_SOURCES = \
486 test_crypto_paillier.c
487 test_crypto_paillier_LDADD = \
491 test_crypto_random_SOURCES = \
493 test_crypto_random_LDADD = \
496 test_crypto_rsa_SOURCES = \
498 test_crypto_rsa_LDADD = \
499 libgnunetutil.la -lgcrypt
501 test_disk_SOURCES = \
506 test_getopt_SOURCES = \
508 test_getopt_LDADD = \
511 test_connection_nc_SOURCES = \
513 test_connection_nc_LDADD = \
516 test_connection_addressing_nc_SOURCES = \
517 test_connection_addressing.c
518 test_connection_addressing_nc_LDADD = \
521 test_connection_receive_cancel_nc_SOURCES = \
522 test_connection_receive_cancel.c
523 test_connection_receive_cancel_nc_LDADD = \
526 test_connection_timeout_nc_SOURCES = \
527 test_connection_timeout.c
528 test_connection_timeout_nc_LDADD = \
531 test_connection_timeout_no_connect_nc_SOURCES = \
532 test_connection_timeout_no_connect.c
533 test_connection_timeout_no_connect_nc_LDADD = \
536 test_connection_transmit_cancel_nc_SOURCES = \
537 test_connection_transmit_cancel.c
538 test_connection_transmit_cancel_nc_LDADD = \
546 test_os_network_SOURCES = \
548 test_os_network_LDADD = \
551 test_peer_SOURCES = \
554 libgnunetutil.la -lgcrypt
556 test_plugin_SOURCES = \
558 test_plugin_LDADD = \
561 test_program_SOURCES = \
563 test_program_LDADD = \
566 test_resolver_api_nc_SOURCES = \
568 test_resolver_api_nc_LDADD = \
571 test_scheduler_SOURCES = \
573 test_scheduler_LDADD = \
576 test_scheduler_delay_SOURCES = \
577 test_scheduler_delay.c
578 test_scheduler_delay_LDADD = \
581 test_server_mst_interrupt_nc_SOURCES = \
582 test_server_mst_interrupt.c
583 test_server_mst_interrupt_nc_LDADD = \
586 test_server_nc_SOURCES = \
588 test_server_nc_LDADD = \
591 test_server_disconnect_nc_SOURCES = \
592 test_server_disconnect.c
593 test_server_disconnect_nc_LDADD = \
596 test_server_with_client_nc_SOURCES = \
597 test_server_with_client.c
598 test_server_with_client_nc_LDADD = \
601 test_server_with_client_unix_SOURCES = \
602 test_server_with_client_unix.c
603 test_server_with_client_unix_LDADD = \
607 test_service_SOURCES = \
609 test_service_LDADD = \
612 test_strings_SOURCES = \
614 test_strings_LDADD = \
618 test_strings_to_data_SOURCES = \
619 test_strings_to_data.c
620 test_strings_to_data_LDADD = \
624 test_time_SOURCES = \
629 test_speedup_SOURCES = \
631 test_speedup_LDADD = \
634 perf_crypto_hash_SOURCES = \
636 perf_crypto_hash_LDADD = \
639 perf_crypto_ecc_dlog_SOURCES = \
640 perf_crypto_ecc_dlog.c
641 perf_crypto_ecc_dlog_LDADD = \
645 perf_crypto_rsa_SOURCES = \
647 perf_crypto_rsa_LDADD = \
650 perf_crypto_symmetric_SOURCES = \
651 perf_crypto_symmetric.c
652 perf_crypto_symmetric_LDADD = \
655 perf_crypto_asymmetric_SOURCES = \
656 perf_crypto_asymmetric.c
657 perf_crypto_asymmetric_LDADD = \
660 perf_crypto_paillier_SOURCES = \
661 perf_crypto_paillier.c
662 perf_crypto_paillier_LDADD = \
666 perf_malloc_SOURCES = \
668 perf_malloc_LDADD = \
673 test_client_data.conf \
674 test_client_unix.conf \
675 test_configuration_data.conf \
676 test_program_data.conf \
677 test_resolver_api_data.conf \
678 test_service_data.conf \
679 test_speedup_data.conf \