1 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3 plugindir = $(libdir)/gnunet
5 libexecdir= $(pkglibdir)/libexec/
7 pkgcfgdir= $(pkgdatadir)/config.d/
16 noinst_LTLIBRARIES = \
18 libgnunetutilwin_la_SOURCES = \
21 libgnunetutilwin_la_LDFLAGS = \
22 -no-undefined -Wl,--export-all-symbols
23 libgnunetutilwin_la_LIBADD = \
24 -lshell32 -liconv -lstdc++ \
25 -lcomdlg32 -lgdi32 -liphlpapi
26 WINLIB = libgnunetutilwin.la
28 W32CONSOLEHELPER = gnunet-helper-w32-console
32 SERVER_CLIENT_UNIX = test_server_with_client_unix
36 AM_CFLAGS = --coverage -O0
40 w32cat_SOURCES = w32cat.c
42 gnunet_helper_w32_console_SOURCES = \
43 gnunet-helper-w32-console.c \
44 gnunet-helper-w32-console.h
45 gnunet_helper_w32_console_LDADD = \
51 test_common_logging_dummy
54 gnunet_config_diff_SOURCES = \
56 gnunet_config_diff_LDADD = \
59 test_common_logging_dummy_SOURCES = \
60 test_common_logging_dummy.c
61 test_common_logging_dummy_LDADD = \
64 lib_LTLIBRARIES = libgnunetutil.la
66 libgnunetutil_la_SOURCES = \
76 container_bloomfilter.c \
78 container_meta_data.c \
79 container_multihashmap.c \
80 container_multipeermap.c \
81 container_multihashmap32.c \
106 resolver_api.c resolver.h \
118 libgnunetutil_la_LIBADD = \
119 $(GCLIBADD) $(WINLIB) \
123 -lltdl $(Z_LIBS) -lunistring $(XLIB)
125 libgnunetutil_la_LDFLAGS = \
130 GNUNET_ECC = gnunet-ecc
131 GNUNET_SCRYPT = gnunet-scrypt
136 gnunet-service-resolver \
149 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
151 gnunet-qr: gnunet-qr.py.in Makefile
152 $(do_subst) < gnunet-qr.py.in > gnunet-qr
155 gnunet_service_resolver_SOURCES = \
156 gnunet-service-resolver.c
157 gnunet_service_resolver_LDADD = \
162 gnunet_resolver_SOURCES = \
164 gnunet_resolver_LDADD = \
169 gnunet_ecc_SOURCES = \
173 $(GN_LIBINTL) -lgcrypt
175 gnunet_scrypt_SOURCES = \
177 gnunet_scrypt_LDADD = \
179 $(GN_LIBINTL) -lgcrypt
182 gnunet_config_SOURCES = \
184 gnunet_config_LDADD = \
189 gnunet_uri_SOURCES = \
195 plugin_LTLIBRARIES = \
196 libgnunet_plugin_test.la
198 libgnunet_plugin_test_la_SOURCES = \
200 libgnunet_plugin_test_la_LDFLAGS = \
206 perf_crypto_symmetric \
213 test_common_allocation \
215 test_common_logging \
217 test_container_bloomfilter \
218 test_container_meta_data \
219 test_container_multihashmap \
220 test_container_multihashmap32 \
221 test_container_multipeermap \
222 test_container_heap \
223 test_container_slist \
224 test_crypto_symmetric \
231 test_crypto_paillier \
236 test_connection_addressing.nc \
237 test_connection_receive_cancel.nc \
238 test_connection_timeout.nc \
239 test_connection_timeout_no_connect.nc \
240 test_connection_transmit_cancel.nc \
247 test_resolver_api.nc \
249 test_scheduler_delay \
251 test_server_disconnect.nc \
252 test_server_with_client.nc \
253 test_server_mst_interrupt.nc \
254 $(SERVER_CLIENT_UNIX) \
257 test_strings_to_data \
261 test_os_start_process \
262 test_common_logging_runtime_loglevels
265 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
266 TESTS = $(check_PROGRAMS)
269 # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
270 # sequential execution order for them
271 TEST_EXTENSIONS = .nc
272 test_connection.log: test_client.log
273 test_connection_addressing.log: test_connection.log
274 test_connection_timeout_no_connect.log: test_connection_addressing.log
275 test_connection_transmit_cancel.log: test_connection_timeout_no_connect.log
276 test_connection_receive_cancel.log: test_connection_transmit_cancel.log
277 test_connection_timeout.log: test_connection_receive_cancel.log
278 test_mq_client.log: test_connection_timeout.log
279 test_resolver_api.log: test_mq_client.log
280 test_server.log: test_resolver_api.log
281 test_server_disconnect.log: test_server.log
282 test_server_with_client.log: test_server_disconnect.log
283 test_server_mst_interrupt.log: test_server_with_client.log
291 test_os_start_process_SOURCES = \
292 test_os_start_process.c
293 test_os_start_process_LDADD = \
295 test_os_start_process_DEPENDENCIES = \
299 test_client_nc_SOURCES = \
301 test_client_nc_LDADD = \
304 test_common_allocation_SOURCES = \
305 test_common_allocation.c
306 test_common_allocation_LDADD = \
309 test_common_endian_SOURCES = \
311 test_common_endian_LDADD = \
314 test_common_logging_SOURCES = \
315 test_common_logging.c
316 test_common_logging_LDADD = \
319 test_common_logging_runtime_loglevels_SOURCES = \
320 test_common_logging_runtime_loglevels.c
321 test_common_logging_runtime_loglevels_LDADD = \
324 test_configuration_SOURCES = \
326 test_configuration_LDADD = \
329 test_container_bloomfilter_SOURCES = \
330 test_container_bloomfilter.c
331 test_container_bloomfilter_LDADD = \
334 test_container_meta_data_SOURCES = \
335 test_container_meta_data.c
336 test_container_meta_data_LDADD = \
337 libgnunetutil.la -lextractor
339 test_container_multihashmap_SOURCES = \
340 test_container_multihashmap.c
341 test_container_multihashmap_LDADD = \
344 test_container_multihashmap32_SOURCES = \
345 test_container_multihashmap32.c
346 test_container_multihashmap32_LDADD = \
349 test_container_multipeermap_SOURCES = \
350 test_container_multipeermap.c
351 test_container_multipeermap_LDADD = \
354 test_container_heap_SOURCES = \
355 test_container_heap.c
356 test_container_heap_LDADD = \
359 test_container_slist_SOURCES = \
360 test_container_slist.c
361 test_container_slist_LDADD = \
364 test_crypto_symmetric_SOURCES = \
365 test_crypto_symmetric.c
366 test_crypto_symmetric_LDADD = \
369 test_crypto_crc_SOURCES = \
371 test_crypto_crc_LDADD = \
374 test_crypto_ecdsa_SOURCES = \
376 test_crypto_ecdsa_LDADD = \
380 test_crypto_eddsa_SOURCES = \
382 test_crypto_eddsa_LDADD = \
386 test_crypto_ecdhe_SOURCES = \
388 test_crypto_ecdhe_LDADD = \
392 test_crypto_hash_SOURCES = \
394 test_crypto_hash_LDADD = \
397 test_crypto_hkdf_SOURCES = \
399 test_crypto_hkdf_LDADD = \
402 test_crypto_paillier_SOURCES = \
403 test_crypto_paillier.c
404 test_crypto_paillier_LDADD = \
408 test_crypto_random_SOURCES = \
410 test_crypto_random_LDADD = \
413 test_disk_SOURCES = \
418 test_getopt_SOURCES = \
420 test_getopt_LDADD = \
423 test_connection_nc_SOURCES = \
425 test_connection_nc_LDADD = \
428 test_connection_addressing_nc_SOURCES = \
429 test_connection_addressing.c
430 test_connection_addressing_nc_LDADD = \
433 test_connection_receive_cancel_nc_SOURCES = \
434 test_connection_receive_cancel.c
435 test_connection_receive_cancel_nc_LDADD = \
438 test_connection_timeout_nc_SOURCES = \
439 test_connection_timeout.c
440 test_connection_timeout_nc_LDADD = \
443 test_connection_timeout_no_connect_nc_SOURCES = \
444 test_connection_timeout_no_connect.c
445 test_connection_timeout_no_connect_nc_LDADD = \
448 test_connection_transmit_cancel_nc_SOURCES = \
449 test_connection_transmit_cancel.c
450 test_connection_transmit_cancel_nc_LDADD = \
458 test_mq_client_nc_SOURCES = \
460 test_mq_client_nc_LDADD = \
463 test_os_network_SOURCES = \
465 test_os_network_LDADD = \
468 test_peer_SOURCES = \
471 libgnunetutil.la -lgcrypt
473 test_plugin_SOURCES = \
475 test_plugin_LDADD = \
478 test_program_SOURCES = \
480 test_program_LDADD = \
483 test_resolver_api_nc_SOURCES = \
485 test_resolver_api_nc_LDADD = \
488 test_scheduler_SOURCES = \
490 test_scheduler_LDADD = \
493 test_scheduler_delay_SOURCES = \
494 test_scheduler_delay.c
495 test_scheduler_delay_LDADD = \
498 test_server_mst_interrupt_nc_SOURCES = \
499 test_server_mst_interrupt.c
500 test_server_mst_interrupt_nc_LDADD = \
503 test_server_nc_SOURCES = \
505 test_server_nc_LDADD = \
508 test_server_disconnect_nc_SOURCES = \
509 test_server_disconnect.c
510 test_server_disconnect_nc_LDADD = \
513 test_server_with_client_nc_SOURCES = \
514 test_server_with_client.c
515 test_server_with_client_nc_LDADD = \
518 test_server_with_client_unix_SOURCES = \
519 test_server_with_client_unix.c
520 test_server_with_client_unix_LDADD = \
524 test_service_SOURCES = \
526 test_service_LDADD = \
529 test_strings_SOURCES = \
531 test_strings_LDADD = \
535 test_strings_to_data_SOURCES = \
536 test_strings_to_data.c
537 test_strings_to_data_LDADD = \
541 test_time_SOURCES = \
546 test_speedup_SOURCES = \
548 test_speedup_LDADD = \
551 perf_crypto_hash_SOURCES = \
553 perf_crypto_hash_LDADD = \
556 perf_crypto_symmetric_SOURCES = \
557 perf_crypto_symmetric.c
558 perf_crypto_symmetric_LDADD = \
561 perf_malloc_SOURCES = \
563 perf_malloc_LDADD = \
568 test_configuration_data.conf \
569 test_program_data.conf \
570 test_resolver_api_data.conf \
571 test_service_data.conf \
572 test_speedup_data.conf \