Makefile.am 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. #t This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. pkgcfgdir= $(pkgdatadir)/config.d/
  4. libexecdir= $(pkglibdir)/libexec/
  5. if MINGW
  6. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  7. endif
  8. if USE_COVERAGE
  9. AM_CFLAGS = -fprofile-arcs -ftest-coverage
  10. endif
  11. if HAVE_EXPERIMENTAL
  12. if HAVE_LIBGLPK
  13. PERF_MLP = \
  14. perf_ats_mlp_transport_none \
  15. perf_ats_mlp_transport_bandwidth \
  16. perf_ats_mlp_transport_latency \
  17. perf_ats_mlp_core_none \
  18. perf_ats_mlp_core_bandwidth \
  19. perf_ats_mlp_core_latency
  20. endif
  21. endif
  22. if HAVE_TESTING
  23. TESTING_TESTS = \
  24. perf_ats_proportional_transport_none \
  25. perf_ats_proportional_transport_bandwidth \
  26. perf_ats_proportional_transport_latency \
  27. perf_ats_proportional_core_none \
  28. perf_ats_proportional_core_bandwidth \
  29. perf_ats_proportional_core_latency \
  30. $(PERF_MLP)
  31. # RIL-tests commented out as RIL is currently badly broken.
  32. # perf_ats_ril_transport_none perf_ats_ril_core_none perf_ats_ril_transport_bandwidth perf_ats_ril_core_bandwidth perf_ats_ril_transport_latency perf_ats_ril_core_latency
  33. endif
  34. lib_LTLIBRARIES = \
  35. libgnunetatstesting.la
  36. check_PROGRAMS = \
  37. $(TESTING_TESTS)
  38. if ENABLE_TEST_RUN
  39. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  40. TESTS = $(check_PROGRAMS)
  41. endif
  42. noinst_PROGRAMS = \
  43. gnunet-ats-sim gnunet-solver-eval
  44. libgnunetatstesting_la_SOURCES = \
  45. ats-testing.c ats-testing.h \
  46. ats-testing-log.c ats-testing-traffic.c \
  47. ats-testing-experiment.c ats-testing-preferences.c
  48. libgnunetatstesting_la_LIBADD = \
  49. $(top_builddir)/src/testbed/libgnunettestbed.la \
  50. $(top_builddir)/src/core/libgnunetcore.la \
  51. $(top_builddir)/src/transport/libgnunettransport.la \
  52. $(top_builddir)/src/ats/libgnunetats.la \
  53. $(top_builddir)/src/util/libgnunetutil.la \
  54. $(GN_LIBINTL)
  55. libgnunetatstesting_la_DEPENDENCIES = \
  56. $(top_builddir)/src/testbed/libgnunettestbed.la \
  57. $(top_builddir)/src/ats/libgnunetats.la
  58. libgnunetatstesting_la_LDFLAGS = \
  59. $(GN_LIB_LDFLAGS)
  60. gnunet_ats_sim_SOURCES = \
  61. gnunet-ats-sim.c
  62. gnunet_ats_sim_LDADD = \
  63. $(top_builddir)/src/util/libgnunetutil.la \
  64. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  65. $(top_builddir)/src/testbed/libgnunettestbed.la \
  66. $(top_builddir)/src/ats/libgnunetats.la \
  67. $(top_builddir)/src/core/libgnunetcore.la \
  68. $(top_builddir)/src/transport/libgnunettransport.la
  69. gnunet_ats_sim_DEPENDENCIES = \
  70. libgnunetatstesting.la \
  71. $(top_builddir)/src/util/libgnunetutil.la
  72. gnunet_solver_eval_SOURCES = \
  73. gnunet-solver-eval.c
  74. gnunet_solver_eval_LDADD = \
  75. $(top_builddir)/src/util/libgnunetutil.la \
  76. $(top_builddir)/src/ats/libgnunetats.la \
  77. $(top_builddir)/src/core/libgnunetcore.la \
  78. $(top_builddir)/src/transport/libgnunettransport.la
  79. gnunet_solver_eval_DEPENDENCIES = \
  80. $(top_builddir)/src/util/libgnunetutil.la
  81. perf_ats_proportional_core_none_SOURCES = \
  82. perf_ats.c
  83. perf_ats_proportional_core_none_LDADD = \
  84. $(top_builddir)/src/util/libgnunetutil.la \
  85. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  86. $(top_builddir)/src/testbed/libgnunettestbed.la \
  87. $(top_builddir)/src/ats/libgnunetats.la \
  88. $(top_builddir)/src/core/libgnunetcore.la \
  89. $(top_builddir)/src/transport/libgnunettransport.la
  90. perf_ats_proportional_core_none_DEPENDENCIES = \
  91. libgnunetatstesting.la \
  92. $(top_builddir)/src/util/libgnunetutil.la
  93. perf_ats_proportional_transport_none_SOURCES = \
  94. perf_ats.c
  95. perf_ats_proportional_transport_none_LDADD = \
  96. $(top_builddir)/src/util/libgnunetutil.la \
  97. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  98. $(top_builddir)/src/testbed/libgnunettestbed.la \
  99. $(top_builddir)/src/ats/libgnunetats.la \
  100. $(top_builddir)/src/core/libgnunetcore.la \
  101. $(top_builddir)/src/transport/libgnunettransport.la
  102. perf_ats_proportional_transport_none_DEPENDENCIES = \
  103. libgnunetatstesting.la \
  104. $(top_builddir)/src/util/libgnunetutil.la
  105. perf_ats_proportional_core_bandwidth_SOURCES = \
  106. perf_ats.c
  107. perf_ats_proportional_core_bandwidth_LDADD = \
  108. $(top_builddir)/src/util/libgnunetutil.la \
  109. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  110. $(top_builddir)/src/testbed/libgnunettestbed.la \
  111. $(top_builddir)/src/ats/libgnunetats.la \
  112. $(top_builddir)/src/core/libgnunetcore.la \
  113. $(top_builddir)/src/transport/libgnunettransport.la
  114. perf_ats_proportional_core_bandwidth_DEPENDENCIES = \
  115. libgnunetatstesting.la \
  116. $(top_builddir)/src/util/libgnunetutil.la
  117. perf_ats_proportional_transport_bandwidth_SOURCES = \
  118. perf_ats.c
  119. perf_ats_proportional_transport_bandwidth_LDADD = \
  120. $(top_builddir)/src/util/libgnunetutil.la \
  121. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  122. $(top_builddir)/src/testbed/libgnunettestbed.la \
  123. $(top_builddir)/src/ats/libgnunetats.la \
  124. $(top_builddir)/src/core/libgnunetcore.la \
  125. $(top_builddir)/src/transport/libgnunettransport.la
  126. perf_ats_proportional_transport_bandwidth_DEPENDENCIES = \
  127. libgnunetatstesting.la \
  128. $(top_builddir)/src/util/libgnunetutil.la
  129. perf_ats_proportional_core_latency_SOURCES = \
  130. perf_ats.c
  131. perf_ats_proportional_core_latency_LDADD = \
  132. $(top_builddir)/src/util/libgnunetutil.la \
  133. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  134. $(top_builddir)/src/testbed/libgnunettestbed.la \
  135. $(top_builddir)/src/ats/libgnunetats.la \
  136. $(top_builddir)/src/core/libgnunetcore.la \
  137. $(top_builddir)/src/transport/libgnunettransport.la
  138. perf_ats_proportional_core_latency_DEPENDENCIES = \
  139. libgnunetatstesting.la \
  140. $(top_builddir)/src/util/libgnunetutil.la
  141. perf_ats_proportional_transport_latency_SOURCES = \
  142. perf_ats.c
  143. perf_ats_proportional_transport_latency_LDADD = \
  144. $(top_builddir)/src/util/libgnunetutil.la \
  145. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  146. $(top_builddir)/src/testbed/libgnunettestbed.la \
  147. $(top_builddir)/src/ats/libgnunetats.la \
  148. $(top_builddir)/src/core/libgnunetcore.la \
  149. $(top_builddir)/src/transport/libgnunettransport.la
  150. perf_ats_proportional_transport_latency_DEPENDENCIES = \
  151. libgnunetatstesting.la \
  152. $(top_builddir)/src/util/libgnunetutil.la
  153. perf_ats_mlp_core_none_SOURCES = \
  154. perf_ats.c
  155. perf_ats_mlp_core_none_LDADD = \
  156. $(top_builddir)/src/util/libgnunetutil.la \
  157. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  158. $(top_builddir)/src/testbed/libgnunettestbed.la \
  159. $(top_builddir)/src/ats/libgnunetats.la \
  160. $(top_builddir)/src/core/libgnunetcore.la \
  161. $(top_builddir)/src/transport/libgnunettransport.la
  162. perf_ats_mlp_core_none_DEPENDENCIES = \
  163. libgnunetatstesting.la \
  164. $(top_builddir)/src/util/libgnunetutil.la
  165. perf_ats_mlp_transport_none_SOURCES = \
  166. perf_ats.c
  167. perf_ats_mlp_transport_none_LDADD = \
  168. $(top_builddir)/src/util/libgnunetutil.la \
  169. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  170. $(top_builddir)/src/testbed/libgnunettestbed.la \
  171. $(top_builddir)/src/ats/libgnunetats.la \
  172. $(top_builddir)/src/core/libgnunetcore.la \
  173. $(top_builddir)/src/transport/libgnunettransport.la
  174. perf_ats_mlp_transport_none_DEPENDENCIES = \
  175. libgnunetatstesting.la \
  176. $(top_builddir)/src/util/libgnunetutil.la
  177. perf_ats_mlp_core_bandwidth_SOURCES = \
  178. perf_ats.c
  179. perf_ats_mlp_core_bandwidth_LDADD = \
  180. $(top_builddir)/src/util/libgnunetutil.la \
  181. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  182. $(top_builddir)/src/testbed/libgnunettestbed.la \
  183. $(top_builddir)/src/ats/libgnunetats.la \
  184. $(top_builddir)/src/core/libgnunetcore.la \
  185. $(top_builddir)/src/transport/libgnunettransport.la
  186. perf_ats_mlp_core_bandwidth_DEPENDENCIES = \
  187. libgnunetatstesting.la \
  188. $(top_builddir)/src/util/libgnunetutil.la
  189. perf_ats_mlp_transport_bandwidth_SOURCES = \
  190. perf_ats.c
  191. perf_ats_mlp_transport_bandwidth_LDADD = \
  192. $(top_builddir)/src/util/libgnunetutil.la \
  193. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  194. $(top_builddir)/src/testbed/libgnunettestbed.la \
  195. $(top_builddir)/src/ats/libgnunetats.la \
  196. $(top_builddir)/src/core/libgnunetcore.la \
  197. $(top_builddir)/src/transport/libgnunettransport.la
  198. perf_ats_mlp_transport_bandwidth_DEPENDENCIES = \
  199. libgnunetatstesting.la \
  200. $(top_builddir)/src/util/libgnunetutil.la
  201. perf_ats_mlp_core_latency_SOURCES = \
  202. perf_ats.c
  203. perf_ats_mlp_core_latency_LDADD = \
  204. $(top_builddir)/src/util/libgnunetutil.la \
  205. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  206. $(top_builddir)/src/testbed/libgnunettestbed.la \
  207. $(top_builddir)/src/ats/libgnunetats.la \
  208. $(top_builddir)/src/core/libgnunetcore.la \
  209. $(top_builddir)/src/transport/libgnunettransport.la
  210. perf_ats_mlp_core_latency_DEPENDENCIES = \
  211. libgnunetatstesting.la \
  212. $(top_builddir)/src/util/libgnunetutil.la
  213. perf_ats_mlp_transport_latency_SOURCES = \
  214. perf_ats.c
  215. perf_ats_mlp_transport_latency_LDADD = \
  216. $(top_builddir)/src/util/libgnunetutil.la \
  217. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  218. $(top_builddir)/src/testbed/libgnunettestbed.la \
  219. $(top_builddir)/src/ats/libgnunetats.la \
  220. $(top_builddir)/src/core/libgnunetcore.la \
  221. $(top_builddir)/src/transport/libgnunettransport.la
  222. perf_ats_mlp_transport_latencyDEPENDENCIES = \
  223. $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  224. $(top_builddir)/src/util/libgnunetutil.la
  225. #perf_ats_ril_core_none_SOURCES = \
  226. # perf_ats.c
  227. #perf_ats_ril_core_none_LDADD = \
  228. # $(top_builddir)/src/util/libgnunetutil.la \
  229. # $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
  230. # $(top_builddir)/src/testbed/libgnunettestbed.la \
  231. # $(top_builddir)/src/ats/libgnunetats.la \
  232. # $(top_builddir)/src/core/libgnunetcore.la \
  233. # $(top_builddir)/src/transport/libgnunettransport.la
  234. #perf_ats_ril_core_none_DEPENDENCIES = \
  235. # libgnunetatstesting.la \
  236. # $(top_builddir)/src/util/libgnunetutil.la
  237. EXTRA_DIST = \
  238. gnunet_ats_sim_default.conf \
  239. perf_ats_proportional_none.conf \
  240. perf_ats_proportional_bandwidth.conf \
  241. perf_ats_proportional_latency.conf \
  242. perf_ats_mlp_none.conf \
  243. perf_ats_mlp_bandwidth.conf \
  244. perf_ats_mlp_latency.conf \
  245. perf_ats_ril_none.conf \
  246. perf_ats_ril_bandwidth.conf \
  247. perf_ats_ril_latency.conf