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 \
104 resolver_api.c resolver.h \
117 libgnunetutil_la_LIBADD = \
118 $(GCLIBADD) $(WINLIB) \
122 -lltdl $(Z_LIBS) -lunistring $(XLIB)
124 libgnunetutil_la_LDFLAGS = \
129 libgnunetutil_taler_wallet_la_SOURCES = \
130 common_allocation.c \
134 container_multihashmap.c \
135 container_multihashmap32.c \
148 libgnunetutil_taler_wallet_la_LIBADD = \
152 libgnunetutil_taler_wallet_la_LDFLAGS = \
157 GNUNET_ECC = gnunet-ecc
158 GNUNET_SCRYPT = gnunet-scrypt
162 lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
164 lib_LTLIBRARIES = libgnunetutil.la
167 gnunet-service-resolver \
183 test_common_logging_dummy
187 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
188 TESTS = $(check_PROGRAMS)
194 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
196 gnunet-qr: gnunet-qr.py.in Makefile
197 $(do_subst) < gnunet-qr.py.in > gnunet-qr
200 gnunet_service_resolver_SOURCES = \
201 gnunet-service-resolver.c
202 gnunet_service_resolver_LDADD = \
207 gnunet_resolver_SOURCES = \
209 gnunet_resolver_LDADD = \
214 gnunet_ecc_SOURCES = \
218 $(GN_LIBINTL) -lgcrypt
220 gnunet_scrypt_SOURCES = \
222 gnunet_scrypt_LDADD = \
224 $(GN_LIBINTL) -lgcrypt
227 gnunet_config_SOURCES = \
229 gnunet_config_LDADD = \
234 gnunet_uri_SOURCES = \
240 plugin_LTLIBRARIES = \
241 libgnunet_plugin_test.la
243 libgnunet_plugin_test_la_SOURCES = \
245 libgnunet_plugin_test_la_LDFLAGS = \
251 perf_crypto_paillier \
252 perf_crypto_symmetric \
253 perf_crypto_asymmetric \
260 test_common_allocation \
262 test_common_logging \
264 test_container_bloomfilter \
265 test_container_meta_data \
266 test_container_multihashmap \
267 test_container_multihashmap32 \
268 test_container_multipeermap \
269 test_container_heap \
270 test_crypto_symmetric \
275 test_crypto_ecdh_eddsa \
276 test_crypto_ecc_dlog \
278 test_crypto_hash_context \
280 test_crypto_paillier \
286 test_connection_addressing.nc \
287 test_connection_receive_cancel.nc \
288 test_connection_timeout.nc \
289 test_connection_timeout_no_connect.nc \
290 test_connection_transmit_cancel.nc \
297 test_resolver_api.nc \
299 test_scheduler_delay \
301 test_server_disconnect.nc \
302 test_server_with_client.nc \
303 test_server_mst_interrupt.nc \
304 $(SERVER_CLIENT_UNIX) \
307 test_strings_to_data \
311 test_os_start_process \
312 test_common_logging_runtime_loglevels
315 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
316 # sequential execution order for them
317 TEST_EXTENSIONS = .nc
318 test_connection.log: test_client.log
319 test_connection_addressing.log: test_connection.log
320 test_connection_timeout_no_connect.log: test_connection_addressing.log
321 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
322 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
323 test_connection_timeout.log: test_connection_receive_cancel.log
324 test_mq_client.log: test_connection_timeout.log
325 test_resolver_api.log: test_mq_client.log
326 test_server.log: test_resolver_api.log
327 test_server_disconnect.log: test_server.log
328 test_server_with_client.log: test_server_disconnect.log
329 test_server_mst_interrupt.log: test_server_with_client.log
337 test_os_start_process_SOURCES = \
338 test_os_start_process.c
339 test_os_start_process_LDADD = \
341 test_os_start_process_DEPENDENCIES = \
345 test_client_nc_SOURCES = \
347 test_client_nc_LDADD = \
350 test_common_allocation_SOURCES = \
351 test_common_allocation.c
352 test_common_allocation_LDADD = \
355 test_common_endian_SOURCES = \
357 test_common_endian_LDADD = \
360 test_common_logging_SOURCES = \
361 test_common_logging.c
362 test_common_logging_LDADD = \
365 test_common_logging_runtime_loglevels_SOURCES = \
366 test_common_logging_runtime_loglevels.c
367 test_common_logging_runtime_loglevels_LDADD = \
370 test_configuration_SOURCES = \
372 test_configuration_LDADD = \
375 test_container_bloomfilter_SOURCES = \
376 test_container_bloomfilter.c
377 test_container_bloomfilter_LDADD = \
380 test_container_meta_data_SOURCES = \
381 test_container_meta_data.c
382 test_container_meta_data_LDADD = \
383 libgnunetutil.la -lextractor
385 test_container_multihashmap_SOURCES = \
386 test_container_multihashmap.c
387 test_container_multihashmap_LDADD = \
390 test_container_multihashmap32_SOURCES = \
391 test_container_multihashmap32.c
392 test_container_multihashmap32_LDADD = \
395 test_container_multipeermap_SOURCES = \
396 test_container_multipeermap.c
397 test_container_multipeermap_LDADD = \
400 test_container_heap_SOURCES = \
401 test_container_heap.c
402 test_container_heap_LDADD = \
405 test_crypto_symmetric_SOURCES = \
406 test_crypto_symmetric.c
407 test_crypto_symmetric_LDADD = \
410 test_crypto_crc_SOURCES = \
412 test_crypto_crc_LDADD = \
415 test_crypto_ecdsa_SOURCES = \
417 test_crypto_ecdsa_LDADD = \
421 test_crypto_eddsa_SOURCES = \
423 test_crypto_eddsa_LDADD = \
427 test_crypto_ecc_dlog_SOURCES = \
428 test_crypto_ecc_dlog.c
429 test_crypto_ecc_dlog_LDADD = \
433 test_crypto_ecdhe_SOURCES = \
435 test_crypto_ecdhe_LDADD = \
439 test_crypto_ecdh_eddsa_SOURCES = \
440 test_crypto_ecdh_eddsa.c
441 test_crypto_ecdh_eddsa_LDADD = \
445 test_crypto_hash_SOURCES = \
447 test_crypto_hash_LDADD = \
450 test_crypto_hash_context_SOURCES = \
451 test_crypto_hash_context.c
452 test_crypto_hash_context_LDADD = \
455 test_crypto_hkdf_SOURCES = \
457 test_crypto_hkdf_LDADD = \
460 test_crypto_paillier_SOURCES = \
461 test_crypto_paillier.c
462 test_crypto_paillier_LDADD = \
466 test_crypto_random_SOURCES = \
468 test_crypto_random_LDADD = \
471 test_crypto_rsa_SOURCES = \
473 test_crypto_rsa_LDADD = \
476 test_disk_SOURCES = \
481 test_getopt_SOURCES = \
483 test_getopt_LDADD = \
486 test_connection_nc_SOURCES = \
488 test_connection_nc_LDADD = \
491 test_connection_addressing_nc_SOURCES = \
492 test_connection_addressing.c
493 test_connection_addressing_nc_LDADD = \
496 test_connection_receive_cancel_nc_SOURCES = \
497 test_connection_receive_cancel.c
498 test_connection_receive_cancel_nc_LDADD = \
501 test_connection_timeout_nc_SOURCES = \
502 test_connection_timeout.c
503 test_connection_timeout_nc_LDADD = \
506 test_connection_timeout_no_connect_nc_SOURCES = \
507 test_connection_timeout_no_connect.c
508 test_connection_timeout_no_connect_nc_LDADD = \
511 test_connection_transmit_cancel_nc_SOURCES = \
512 test_connection_transmit_cancel.c
513 test_connection_transmit_cancel_nc_LDADD = \
521 test_mq_client_nc_SOURCES = \
523 test_mq_client_nc_LDADD = \
526 test_os_network_SOURCES = \
528 test_os_network_LDADD = \
531 test_peer_SOURCES = \
534 libgnunetutil.la -lgcrypt
536 test_plugin_SOURCES = \
538 test_plugin_LDADD = \
541 test_program_SOURCES = \
543 test_program_LDADD = \
546 test_resolver_api_nc_SOURCES = \
548 test_resolver_api_nc_LDADD = \
551 test_scheduler_SOURCES = \
553 test_scheduler_LDADD = \
556 test_scheduler_delay_SOURCES = \
557 test_scheduler_delay.c
558 test_scheduler_delay_LDADD = \
561 test_server_mst_interrupt_nc_SOURCES = \
562 test_server_mst_interrupt.c
563 test_server_mst_interrupt_nc_LDADD = \
566 test_server_nc_SOURCES = \
568 test_server_nc_LDADD = \
571 test_server_disconnect_nc_SOURCES = \
572 test_server_disconnect.c
573 test_server_disconnect_nc_LDADD = \
576 test_server_with_client_nc_SOURCES = \
577 test_server_with_client.c
578 test_server_with_client_nc_LDADD = \
581 test_server_with_client_unix_SOURCES = \
582 test_server_with_client_unix.c
583 test_server_with_client_unix_LDADD = \
587 test_service_SOURCES = \
589 test_service_LDADD = \
592 test_strings_SOURCES = \
594 test_strings_LDADD = \
598 test_strings_to_data_SOURCES = \
599 test_strings_to_data.c
600 test_strings_to_data_LDADD = \
604 test_time_SOURCES = \
609 test_speedup_SOURCES = \
611 test_speedup_LDADD = \
614 perf_crypto_hash_SOURCES = \
616 perf_crypto_hash_LDADD = \
619 perf_crypto_symmetric_SOURCES = \
620 perf_crypto_symmetric.c
621 perf_crypto_symmetric_LDADD = \
624 perf_crypto_asymmetric_SOURCES = \
625 perf_crypto_asymmetric.c
626 perf_crypto_asymmetric_LDADD = \
629 perf_crypto_paillier_SOURCES = \
630 perf_crypto_paillier.c
631 perf_crypto_paillier_LDADD = \
635 perf_malloc_SOURCES = \
637 perf_malloc_LDADD = \
642 test_configuration_data.conf \
643 test_program_data.conf \
644 test_resolver_api_data.conf \
645 test_service_data.conf \
646 test_speedup_data.conf \