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 \
103 resolver_api.c resolver.h \
116 libgnunetutil_la_LIBADD = \
117 $(GCLIBADD) $(WINLIB) \
121 -lltdl $(Z_LIBS) -lunistring $(XLIB)
123 libgnunetutil_la_LDFLAGS = \
128 libgnunetutil_taler_wallet_la_SOURCES = \
129 common_allocation.c \
133 container_multihashmap.c \
134 container_multihashmap32.c \
147 libgnunetutil_taler_wallet_la_LIBADD = \
151 libgnunetutil_taler_wallet_la_LDFLAGS = \
156 GNUNET_ECC = gnunet-ecc
157 GNUNET_SCRYPT = gnunet-scrypt
161 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
163 lib_LTLIBRARIES = libgnunetutil.la
166 gnunet-service-resolver \
182 test_common_logging_dummy
186 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
187 TESTS = $(check_PROGRAMS)
193 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
195 gnunet-qr: gnunet-qr.py.in Makefile
196 $(do_subst) < gnunet-qr.py.in > gnunet-qr
199 gnunet_service_resolver_SOURCES = \
200 gnunet-service-resolver.c
201 gnunet_service_resolver_LDADD = \
206 gnunet_resolver_SOURCES = \
208 gnunet_resolver_LDADD = \
213 gnunet_ecc_SOURCES = \
217 $(GN_LIBINTL) -lgcrypt
219 gnunet_scrypt_SOURCES = \
221 gnunet_scrypt_LDADD = \
223 $(GN_LIBINTL) -lgcrypt
226 gnunet_config_SOURCES = \
228 gnunet_config_LDADD = \
233 gnunet_uri_SOURCES = \
239 plugin_LTLIBRARIES = \
240 libgnunet_plugin_test.la
242 libgnunet_plugin_test_la_SOURCES = \
244 libgnunet_plugin_test_la_LDFLAGS = \
250 perf_crypto_ecc_dlog \
252 perf_crypto_paillier \
253 perf_crypto_symmetric \
254 perf_crypto_asymmetric \
259 SSH_USING_TESTS = test_socks.nc
266 test_common_allocation \
268 test_common_logging \
270 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 \
286 test_crypto_paillier \
292 test_connection_addressing.nc \
293 test_connection_receive_cancel.nc \
294 test_connection_timeout.nc \
295 test_connection_timeout_no_connect.nc \
296 test_connection_transmit_cancel.nc \
303 test_resolver_api.nc \
305 test_scheduler_delay \
307 test_server_disconnect.nc \
308 test_server_with_client.nc \
309 test_server_mst_interrupt.nc \
310 $(SERVER_CLIENT_UNIX) \
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_connection.log: test_client.log
325 test_connection_addressing.log: test_connection.log
326 test_connection_timeout_no_connect.log: test_connection_addressing.log
327 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
328 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
329 test_connection_timeout.log: test_connection_receive_cancel.log
330 test_mq_client.log: test_connection_timeout.log
331 test_resolver_api.log: test_mq_client.log
332 test_server.log: test_resolver_api.log
333 test_server_disconnect.log: test_server.log
334 test_server_with_client.log: test_server_disconnect.log
335 test_server_mst_interrupt.log: test_server_with_client.log
343 test_os_start_process_SOURCES = \
344 test_os_start_process.c
345 test_os_start_process_LDADD = \
347 test_os_start_process_DEPENDENCIES = \
351 test_client_nc_SOURCES = \
353 test_client_nc_LDADD = \
356 test_socks_nc_SOURCES = \
358 test_socks_nc_LDADD = \
361 test_common_allocation_SOURCES = \
362 test_common_allocation.c
363 test_common_allocation_LDADD = \
366 test_common_endian_SOURCES = \
368 test_common_endian_LDADD = \
371 test_common_logging_SOURCES = \
372 test_common_logging.c
373 test_common_logging_LDADD = \
376 test_common_logging_runtime_loglevels_SOURCES = \
377 test_common_logging_runtime_loglevels.c
378 test_common_logging_runtime_loglevels_LDADD = \
381 test_configuration_SOURCES = \
383 test_configuration_LDADD = \
386 test_container_bloomfilter_SOURCES = \
387 test_container_bloomfilter.c
388 test_container_bloomfilter_LDADD = \
391 test_container_meta_data_SOURCES = \
392 test_container_meta_data.c
393 test_container_meta_data_LDADD = \
394 libgnunetutil.la -lextractor
396 test_container_multihashmap_SOURCES = \
397 test_container_multihashmap.c
398 test_container_multihashmap_LDADD = \
401 test_container_multihashmap32_SOURCES = \
402 test_container_multihashmap32.c
403 test_container_multihashmap32_LDADD = \
406 test_container_multipeermap_SOURCES = \
407 test_container_multipeermap.c
408 test_container_multipeermap_LDADD = \
411 test_container_heap_SOURCES = \
412 test_container_heap.c
413 test_container_heap_LDADD = \
416 test_crypto_symmetric_SOURCES = \
417 test_crypto_symmetric.c
418 test_crypto_symmetric_LDADD = \
421 test_crypto_crc_SOURCES = \
423 test_crypto_crc_LDADD = \
426 test_crypto_ecdsa_SOURCES = \
428 test_crypto_ecdsa_LDADD = \
432 test_crypto_eddsa_SOURCES = \
434 test_crypto_eddsa_LDADD = \
438 test_crypto_ecc_dlog_SOURCES = \
439 test_crypto_ecc_dlog.c
440 test_crypto_ecc_dlog_LDADD = \
444 test_crypto_ecdhe_SOURCES = \
446 test_crypto_ecdhe_LDADD = \
450 test_crypto_ecdh_eddsa_SOURCES = \
451 test_crypto_ecdh_eddsa.c
452 test_crypto_ecdh_eddsa_LDADD = \
456 test_crypto_hash_SOURCES = \
458 test_crypto_hash_LDADD = \
461 test_crypto_hash_context_SOURCES = \
462 test_crypto_hash_context.c
463 test_crypto_hash_context_LDADD = \
466 test_crypto_hkdf_SOURCES = \
468 test_crypto_hkdf_LDADD = \
471 test_crypto_paillier_SOURCES = \
472 test_crypto_paillier.c
473 test_crypto_paillier_LDADD = \
477 test_crypto_random_SOURCES = \
479 test_crypto_random_LDADD = \
482 test_crypto_rsa_SOURCES = \
484 test_crypto_rsa_LDADD = \
485 libgnunetutil.la -lgcrypt
487 test_disk_SOURCES = \
492 test_getopt_SOURCES = \
494 test_getopt_LDADD = \
497 test_connection_nc_SOURCES = \
499 test_connection_nc_LDADD = \
502 test_connection_addressing_nc_SOURCES = \
503 test_connection_addressing.c
504 test_connection_addressing_nc_LDADD = \
507 test_connection_receive_cancel_nc_SOURCES = \
508 test_connection_receive_cancel.c
509 test_connection_receive_cancel_nc_LDADD = \
512 test_connection_timeout_nc_SOURCES = \
513 test_connection_timeout.c
514 test_connection_timeout_nc_LDADD = \
517 test_connection_timeout_no_connect_nc_SOURCES = \
518 test_connection_timeout_no_connect.c
519 test_connection_timeout_no_connect_nc_LDADD = \
522 test_connection_transmit_cancel_nc_SOURCES = \
523 test_connection_transmit_cancel.c
524 test_connection_transmit_cancel_nc_LDADD = \
532 test_mq_client_nc_SOURCES = \
534 test_mq_client_nc_LDADD = \
537 test_os_network_SOURCES = \
539 test_os_network_LDADD = \
542 test_peer_SOURCES = \
545 libgnunetutil.la -lgcrypt
547 test_plugin_SOURCES = \
549 test_plugin_LDADD = \
552 test_program_SOURCES = \
554 test_program_LDADD = \
557 test_resolver_api_nc_SOURCES = \
559 test_resolver_api_nc_LDADD = \
562 test_scheduler_SOURCES = \
564 test_scheduler_LDADD = \
567 test_scheduler_delay_SOURCES = \
568 test_scheduler_delay.c
569 test_scheduler_delay_LDADD = \
572 test_server_mst_interrupt_nc_SOURCES = \
573 test_server_mst_interrupt.c
574 test_server_mst_interrupt_nc_LDADD = \
577 test_server_nc_SOURCES = \
579 test_server_nc_LDADD = \
582 test_server_disconnect_nc_SOURCES = \
583 test_server_disconnect.c
584 test_server_disconnect_nc_LDADD = \
587 test_server_with_client_nc_SOURCES = \
588 test_server_with_client.c
589 test_server_with_client_nc_LDADD = \
592 test_server_with_client_unix_SOURCES = \
593 test_server_with_client_unix.c
594 test_server_with_client_unix_LDADD = \
598 test_service_SOURCES = \
600 test_service_LDADD = \
603 test_strings_SOURCES = \
605 test_strings_LDADD = \
609 test_strings_to_data_SOURCES = \
610 test_strings_to_data.c
611 test_strings_to_data_LDADD = \
615 test_time_SOURCES = \
620 test_speedup_SOURCES = \
622 test_speedup_LDADD = \
625 perf_crypto_hash_SOURCES = \
627 perf_crypto_hash_LDADD = \
630 perf_crypto_ecc_dlog_SOURCES = \
631 perf_crypto_ecc_dlog.c
632 perf_crypto_ecc_dlog_LDADD = \
636 perf_crypto_rsa_SOURCES = \
638 perf_crypto_rsa_LDADD = \
641 perf_crypto_symmetric_SOURCES = \
642 perf_crypto_symmetric.c
643 perf_crypto_symmetric_LDADD = \
646 perf_crypto_asymmetric_SOURCES = \
647 perf_crypto_asymmetric.c
648 perf_crypto_asymmetric_LDADD = \
651 perf_crypto_paillier_SOURCES = \
652 perf_crypto_paillier.c
653 perf_crypto_paillier_LDADD = \
657 perf_malloc_SOURCES = \
659 perf_malloc_LDADD = \
664 test_configuration_data.conf \
665 test_program_data.conf \
666 test_resolver_api_data.conf \
667 test_service_data.conf \
668 test_speedup_data.conf \