Makefile.am 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. plugindir = $(libdir)/gnunet
  4. libexecdir= $(pkglibdir)/libexec/
  5. pkgcfgdir= $(pkgdatadir)/config.d/
  6. dist_pkgcfg_DATA = \
  7. util.conf
  8. pkgcfg_DATA = \
  9. resolver.conf
  10. TEST_CLIENT_UNIX_NC = test_client_unix.nc
  11. if USE_COVERAGE
  12. AM_CFLAGS = --coverage -O0
  13. XLIB = -lgcov
  14. endif
  15. if ENABLE_BENCHMARK
  16. BENCHMARK = benchmark.c benchmark.h
  17. PTHREAD = -lpthread
  18. endif
  19. gnunet_config_diff_SOURCES = \
  20. gnunet-config-diff.c
  21. gnunet_config_diff_LDADD = \
  22. libgnunetutil.la
  23. test_common_logging_dummy_SOURCES = \
  24. test_common_logging_dummy.c
  25. test_common_logging_dummy_LDADD = \
  26. libgnunetutil.la
  27. libgnunetutil_la_SOURCES = \
  28. bandwidth.c \
  29. $(BENCHMARK) \
  30. bio.c \
  31. client.c \
  32. common_allocation.c \
  33. common_endian.c \
  34. common_logging.c \
  35. configuration.c \
  36. configuration_loader.c \
  37. container_bloomfilter.c \
  38. container_heap.c \
  39. container_meta_data.c \
  40. container_multihashmap.c \
  41. container_multishortmap.c \
  42. container_multiuuidmap.c \
  43. container_multipeermap.c \
  44. container_multihashmap32.c \
  45. crypto_symmetric.c \
  46. crypto_crc.c \
  47. crypto_ecc.c \
  48. crypto_ecc_dlog.c \
  49. crypto_ecc_setup.c \
  50. crypto_hash.c \
  51. crypto_hash_file.c \
  52. crypto_hkdf.c \
  53. crypto_kdf.c \
  54. crypto_mpi.c \
  55. crypto_paillier.c \
  56. crypto_pow.c \
  57. crypto_random.c \
  58. crypto_rsa.c \
  59. disk.c \
  60. disk.h \
  61. dnsparser.c \
  62. dnsstub.c \
  63. getopt.c \
  64. getopt_helpers.c \
  65. helper.c \
  66. load.c \
  67. mst.c \
  68. mq.c \
  69. nc.c \
  70. network.c \
  71. op.c \
  72. os_installation.c \
  73. os_network.c \
  74. os_priority.c \
  75. peer.c \
  76. plugin.c \
  77. program.c \
  78. regex.c \
  79. resolver_api.c resolver.h \
  80. scheduler.c \
  81. service.c \
  82. signal.c \
  83. strings.c \
  84. time.c \
  85. tun.c \
  86. tweetnacl-gnunet.c \
  87. tweetnacl-gnunet.h \
  88. speedup.c speedup.h \
  89. proc_compat.c
  90. if HAVE_LIBATOMIC
  91. if DARWIN
  92. LIBATOMIC=
  93. else
  94. LIBATOMIC= -latomic
  95. endif
  96. else
  97. LIBATOMIC=
  98. endif
  99. if HAVE_LIBIDN
  100. LIBIDN= -lidn
  101. else
  102. LIBIDN=
  103. endif
  104. if HAVE_LIBIDN2
  105. LIBIDN2= -lidn2
  106. else
  107. LIBIDN2=
  108. endif
  109. libgnunetutil_la_LIBADD = \
  110. $(GCLIBADD) $(WINLIB) \
  111. $(LIBATOMIC) \
  112. $(LIBGCRYPT_LIBS) \
  113. $(LTLIBICONV) \
  114. $(LTLIBINTL) \
  115. -lltdl \
  116. $(LIBIDN) $(LIBIDN2) \
  117. $(Z_LIBS) \
  118. -lunistring \
  119. $(XLIB) \
  120. $(PTHREAD)
  121. libgnunetutil_la_LDFLAGS = \
  122. $(GN_LIB_LDFLAGS) \
  123. -version-info 13:2:0
  124. libgnunetutil_taler_wallet_la_SOURCES = \
  125. common_allocation.c \
  126. common_endian.c \
  127. common_logging.c \
  128. container_heap.c \
  129. container_multihashmap.c \
  130. container_multihashmap32.c \
  131. crypto_symmetric.c \
  132. crypto_crc.c \
  133. crypto_ecc.c \
  134. crypto_hash.c \
  135. crypto_hkdf.c \
  136. crypto_kdf.c \
  137. crypto_mpi.c \
  138. crypto_random.c \
  139. crypto_rsa.c \
  140. strings.c \
  141. time.c
  142. libgnunetutil_taler_wallet_la_LIBADD = \
  143. $(LIBGCRYPT_LIBS) \
  144. -lunistring
  145. libgnunetutil_taler_wallet_la_LDFLAGS = \
  146. $(GN_LIB_LDFLAGS) \
  147. -version-info 0:0:0
  148. if HAVE_TESTING
  149. GNUNET_ECC = gnunet-ecc
  150. GNUNET_SCRYPT = gnunet-scrypt
  151. endif
  152. if TALER_ONLY
  153. lib_LTLIBRARIES = libgnunetutil_taler_wallet.la
  154. else
  155. lib_LTLIBRARIES = libgnunetutil.la
  156. libexec_PROGRAMS = \
  157. gnunet-service-resolver \
  158. gnunet-timeout
  159. bin_PROGRAMS = \
  160. gnunet-resolver \
  161. gnunet-config \
  162. $(GNUNET_ECC) \
  163. $(GNUNET_SCRYPT) \
  164. gnunet-uri
  165. if HAVE_ZBAR
  166. bin_PROGRAMS += gnunet-qr
  167. endif
  168. noinst_PROGRAMS = \
  169. gnunet-config-diff \
  170. test_common_logging_dummy
  171. if ENABLE_TEST_RUN
  172. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  173. TESTS = $(check_PROGRAMS)
  174. endif
  175. endif
  176. gnunet_timeout_SOURCES = \
  177. gnunet-timeout.c
  178. gnunet_service_resolver_SOURCES = \
  179. gnunet-service-resolver.c
  180. gnunet_service_resolver_LDADD = \
  181. libgnunetutil.la \
  182. $(GN_LIBINTL)
  183. if HAVE_GETADDRINFO_A
  184. gnunet_service_resolver_LDADD += -lanl
  185. endif
  186. gnunet_resolver_SOURCES = \
  187. gnunet-resolver.c
  188. gnunet_resolver_LDADD = \
  189. libgnunetutil.la \
  190. $(GN_LIBINTL)
  191. gnunet_ecc_SOURCES = \
  192. gnunet-ecc.c
  193. gnunet_ecc_LDADD = \
  194. libgnunetutil.la \
  195. $(GN_LIBINTL) -lgcrypt
  196. gnunet_scrypt_SOURCES = \
  197. gnunet-scrypt.c
  198. gnunet_scrypt_LDADD = \
  199. libgnunetutil.la \
  200. $(GN_LIBINTL) -lgcrypt
  201. gnunet_config_SOURCES = \
  202. gnunet-config.c
  203. gnunet_config_LDADD = \
  204. libgnunetutil.la \
  205. $(GN_LIBINTL)
  206. gnunet_uri_SOURCES = \
  207. gnunet-uri.c
  208. gnunet_uri_LDADD = \
  209. libgnunetutil.la \
  210. $(GN_LIBINTL)
  211. gnunet_qr_SOURCES = \
  212. gnunet-qr.c
  213. gnunet_qr_LDADD = \
  214. libgnunetutil.la \
  215. $(GN_LIBINTL)
  216. gnunet_qr_LDFLAGS= -lzbar
  217. plugin_LTLIBRARIES = \
  218. libgnunet_plugin_test.la
  219. libgnunet_plugin_test_la_SOURCES = \
  220. test_plugin_plug.c
  221. libgnunet_plugin_test_la_LDFLAGS = \
  222. $(GN_PLUGIN_LDFLAGS)
  223. if HAVE_BENCHMARKS
  224. BENCHMARKS = \
  225. perf_crypto_hash \
  226. perf_crypto_ecc_dlog \
  227. perf_crypto_rsa \
  228. perf_crypto_paillier \
  229. perf_crypto_symmetric \
  230. perf_crypto_asymmetric \
  231. perf_malloc
  232. endif
  233. if HAVE_SSH_KEY
  234. # SSH_USING_TESTS = test_socks.nc
  235. endif
  236. check_PROGRAMS = \
  237. test_bio \
  238. test_client.nc \
  239. $(TEST_CLIENT_UNIX_NC) \
  240. test_common_allocation \
  241. test_common_endian \
  242. test_common_logging \
  243. test_configuration \
  244. test_container_bloomfilter \
  245. test_container_dll \
  246. test_container_meta_data \
  247. test_container_multihashmap \
  248. test_container_multihashmap32 \
  249. test_container_multipeermap \
  250. test_container_heap \
  251. test_crypto_symmetric \
  252. test_crypto_crc \
  253. test_crypto_ecdsa \
  254. test_crypto_eddsa \
  255. test_crypto_ecdhe \
  256. test_crypto_ecdh_eddsa \
  257. test_crypto_ecc_dlog \
  258. test_crypto_hash \
  259. test_crypto_hash_context \
  260. test_crypto_hkdf \
  261. test_crypto_kdf \
  262. test_crypto_paillier \
  263. test_crypto_random \
  264. test_crypto_rsa \
  265. test_disk \
  266. test_getopt \
  267. test_hexcoder \
  268. test_mq \
  269. test_os_network \
  270. test_peer \
  271. test_plugin \
  272. test_program \
  273. test_regex \
  274. test_resolver_api.nc \
  275. test_scheduler \
  276. test_scheduler_delay \
  277. test_service \
  278. test_strings \
  279. test_strings_to_data \
  280. test_speedup \
  281. test_time \
  282. test_tun \
  283. $(BENCHMARKS) \
  284. test_os_start_process \
  285. test_common_logging_runtime_loglevels
  286. # Declare .nc (NO-CONCURRENCY) as a test extension so that we can impart
  287. # sequential execution order for them
  288. TEST_EXTENSIONS = .nc
  289. test_test_client_unix.log: test_client.log
  290. test_bio_SOURCES = \
  291. test_bio.c
  292. test_bio_LDADD = \
  293. libgnunetutil.la
  294. test_hexcoder_SOURCES = \
  295. test_hexcoder.c
  296. test_hexcoder_LDADD = \
  297. libgnunetutil.la
  298. test_tun_SOURCES = \
  299. test_tun.c
  300. test_tun_LDADD = \
  301. libgnunetutil.la
  302. test_regex_SOURCES = \
  303. test_regex.c
  304. test_regex_LDADD = \
  305. libgnunetutil.la
  306. test_os_start_process_SOURCES = \
  307. test_os_start_process.c
  308. test_os_start_process_LDADD = \
  309. libgnunetutil.la
  310. test_os_start_process_DEPENDENCIES = \
  311. libgnunetutil.la
  312. test_client_nc_SOURCES = \
  313. test_client.c
  314. test_client_nc_LDADD = \
  315. libgnunetutil.la
  316. test_client_unix_nc_SOURCES = \
  317. test_client.c
  318. test_client_unix_nc_LDADD = \
  319. libgnunetutil.la
  320. #test_socks_nc_SOURCES = \
  321. # test_socks.c
  322. #test_socks_nc_LDADD = \
  323. # libgnunetutil.la
  324. test_common_allocation_SOURCES = \
  325. test_common_allocation.c
  326. test_common_allocation_LDADD = \
  327. libgnunetutil.la
  328. test_common_endian_SOURCES = \
  329. test_common_endian.c
  330. test_common_endian_LDADD = \
  331. libgnunetutil.la
  332. test_common_logging_SOURCES = \
  333. test_common_logging.c
  334. test_common_logging_LDADD = \
  335. libgnunetutil.la
  336. test_common_logging_runtime_loglevels_SOURCES = \
  337. test_common_logging_runtime_loglevels.c
  338. test_common_logging_runtime_loglevels_LDADD = \
  339. libgnunetutil.la
  340. test_configuration_SOURCES = \
  341. test_configuration.c
  342. test_configuration_LDADD = \
  343. libgnunetutil.la
  344. test_container_bloomfilter_SOURCES = \
  345. test_container_bloomfilter.c
  346. test_container_bloomfilter_LDADD = \
  347. libgnunetutil.la
  348. test_container_dll_SOURCES = \
  349. test_container_dll.c
  350. test_container_dll_LDADD = \
  351. libgnunetutil.la
  352. test_container_meta_data_SOURCES = \
  353. test_container_meta_data.c
  354. test_container_meta_data_LDADD = \
  355. libgnunetutil.la
  356. test_container_multihashmap_SOURCES = \
  357. test_container_multihashmap.c
  358. test_container_multihashmap_LDADD = \
  359. libgnunetutil.la
  360. test_container_multihashmap32_SOURCES = \
  361. test_container_multihashmap32.c
  362. test_container_multihashmap32_LDADD = \
  363. libgnunetutil.la
  364. test_container_multipeermap_SOURCES = \
  365. test_container_multipeermap.c
  366. test_container_multipeermap_LDADD = \
  367. libgnunetutil.la
  368. test_container_heap_SOURCES = \
  369. test_container_heap.c
  370. test_container_heap_LDADD = \
  371. libgnunetutil.la
  372. test_crypto_symmetric_SOURCES = \
  373. test_crypto_symmetric.c
  374. test_crypto_symmetric_LDADD = \
  375. libgnunetutil.la
  376. test_crypto_crc_SOURCES = \
  377. test_crypto_crc.c
  378. test_crypto_crc_LDADD = \
  379. libgnunetutil.la
  380. test_crypto_ecdsa_SOURCES = \
  381. test_crypto_ecdsa.c
  382. test_crypto_ecdsa_LDADD = \
  383. libgnunetutil.la \
  384. $(LIBGCRYPT_LIBS)
  385. test_crypto_eddsa_SOURCES = \
  386. test_crypto_eddsa.c
  387. test_crypto_eddsa_LDADD = \
  388. libgnunetutil.la \
  389. $(LIBGCRYPT_LIBS)
  390. test_crypto_ecc_dlog_SOURCES = \
  391. test_crypto_ecc_dlog.c
  392. test_crypto_ecc_dlog_LDADD = \
  393. libgnunetutil.la \
  394. $(LIBGCRYPT_LIBS)
  395. test_crypto_ecdhe_SOURCES = \
  396. test_crypto_ecdhe.c
  397. test_crypto_ecdhe_LDADD = \
  398. libgnunetutil.la \
  399. $(LIBGCRYPT_LIBS)
  400. test_crypto_ecdh_eddsa_SOURCES = \
  401. test_crypto_ecdh_eddsa.c
  402. test_crypto_ecdh_eddsa_LDADD = \
  403. libgnunetutil.la \
  404. $(LIBGCRYPT_LIBS)
  405. test_crypto_hash_SOURCES = \
  406. test_crypto_hash.c
  407. test_crypto_hash_LDADD = \
  408. libgnunetutil.la
  409. test_crypto_hash_context_SOURCES = \
  410. test_crypto_hash_context.c
  411. test_crypto_hash_context_LDADD = \
  412. libgnunetutil.la
  413. test_crypto_hkdf_SOURCES = \
  414. test_crypto_hkdf.c
  415. test_crypto_hkdf_LDADD = \
  416. libgnunetutil.la
  417. test_crypto_kdf_SOURCES = \
  418. test_crypto_kdf.c
  419. test_crypto_kdf_LDADD = \
  420. libgnunetutil.la -lgcrypt
  421. test_crypto_paillier_SOURCES = \
  422. test_crypto_paillier.c
  423. test_crypto_paillier_LDADD = \
  424. $(LIBGCRYPT_LIBS) \
  425. libgnunetutil.la
  426. test_crypto_random_SOURCES = \
  427. test_crypto_random.c
  428. test_crypto_random_LDADD = \
  429. libgnunetutil.la
  430. test_crypto_rsa_SOURCES = \
  431. test_crypto_rsa.c
  432. test_crypto_rsa_LDADD = \
  433. libgnunetutil.la -lgcrypt
  434. test_disk_SOURCES = \
  435. test_disk.c
  436. test_disk_LDADD = \
  437. libgnunetutil.la
  438. test_getopt_SOURCES = \
  439. test_getopt.c
  440. test_getopt_LDADD = \
  441. libgnunetutil.la
  442. test_mq_SOURCES = \
  443. test_mq.c
  444. test_mq_LDADD = \
  445. libgnunetutil.la
  446. test_os_network_SOURCES = \
  447. test_os_network.c
  448. test_os_network_LDADD = \
  449. libgnunetutil.la
  450. test_peer_SOURCES = \
  451. test_peer.c
  452. test_peer_LDADD = \
  453. libgnunetutil.la -lgcrypt
  454. test_plugin_SOURCES = \
  455. test_plugin.c
  456. test_plugin_LDADD = \
  457. libgnunetutil.la
  458. test_program_SOURCES = \
  459. test_program.c
  460. test_program_LDADD = \
  461. libgnunetutil.la
  462. test_resolver_api_nc_SOURCES = \
  463. test_resolver_api.c
  464. test_resolver_api_nc_LDADD = \
  465. libgnunetutil.la
  466. test_scheduler_SOURCES = \
  467. test_scheduler.c
  468. test_scheduler_LDADD = \
  469. libgnunetutil.la
  470. test_scheduler_delay_SOURCES = \
  471. test_scheduler_delay.c
  472. test_scheduler_delay_LDADD = \
  473. libgnunetutil.la
  474. test_service_SOURCES = \
  475. test_service.c
  476. test_service_LDADD = \
  477. libgnunetutil.la
  478. test_strings_SOURCES = \
  479. test_strings.c
  480. test_strings_LDADD = \
  481. libgnunetutil.la
  482. test_strings_to_data_SOURCES = \
  483. test_strings_to_data.c
  484. test_strings_to_data_LDADD = \
  485. libgnunetutil.la
  486. test_time_SOURCES = \
  487. test_time.c
  488. test_time_LDADD = \
  489. libgnunetutil.la
  490. test_speedup_SOURCES = \
  491. test_speedup.c
  492. test_speedup_LDADD = \
  493. libgnunetutil.la
  494. perf_crypto_hash_SOURCES = \
  495. perf_crypto_hash.c
  496. perf_crypto_hash_LDADD = \
  497. libgnunetutil.la
  498. perf_crypto_ecc_dlog_SOURCES = \
  499. perf_crypto_ecc_dlog.c
  500. perf_crypto_ecc_dlog_LDADD = \
  501. libgnunetutil.la \
  502. -lgcrypt
  503. perf_crypto_rsa_SOURCES = \
  504. perf_crypto_rsa.c
  505. perf_crypto_rsa_LDADD = \
  506. libgnunetutil.la
  507. perf_crypto_symmetric_SOURCES = \
  508. perf_crypto_symmetric.c
  509. perf_crypto_symmetric_LDADD = \
  510. libgnunetutil.la
  511. perf_crypto_asymmetric_SOURCES = \
  512. perf_crypto_asymmetric.c
  513. perf_crypto_asymmetric_LDADD = \
  514. libgnunetutil.la
  515. perf_crypto_paillier_SOURCES = \
  516. perf_crypto_paillier.c
  517. perf_crypto_paillier_LDADD = \
  518. libgnunetutil.la \
  519. -lgcrypt
  520. perf_malloc_SOURCES = \
  521. perf_malloc.c
  522. perf_malloc_LDADD = \
  523. libgnunetutil.la
  524. EXTRA_DIST = \
  525. test_client_data.conf \
  526. test_client_unix.conf \
  527. test_configuration_data.conf \
  528. test_program_data.conf \
  529. test_resolver_api_data.conf \
  530. test_service_data.conf \
  531. test_speedup_data.conf