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