comments
[oweals/gnunet.git] / src / util / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6 noinst_LTLIBRARIES = \
7   libgnunetutilwin.la
8 libgnunetutilwin_la_SOURCES = \
9   win.cc \
10   winproc.c
11 libgnunetutilwin_la_LDFLAGS = \
12   -Wl,--no-undefined -Wl,--export-all-symbols 
13 libgnunetutilwin_la_LIBADD = \
14   -lshell32 -liconv -lstdc++ \
15   -lcomdlg32 -lgdi32
16 WINLIB = libgnunetutilwin.la
17 endif
18
19 if !MINGW
20  SERVER_CLIENT_UNIX = test_server_with_client_unix
21 endif
22
23 if USE_COVERAGE
24   AM_CFLAGS = --coverage -O0
25   XLIB = -lgcov
26 endif
27
28 lib_LTLIBRARIES = libgnunetutil.la
29
30 libgnunetutil_la_SOURCES = \
31   bandwidth.c \
32   bio.c \
33   client.c \
34   common_allocation.c \
35   common_endian.c \
36   common_logging.c \
37   configuration.c \
38   connection.c \
39   container_bloomfilter.c \
40   container_heap.c \
41   container_meta_data.c \
42   container_multihashmap.c \
43   container_slist.c \
44   crypto_aes.c \
45   crypto_crc.c \
46   crypto_hash.c \
47   crypto_hkdf.c \
48   crypto_kdf.c \
49   crypto_ksk.c \
50   crypto_random.c \
51   crypto_rsa.c \
52   disk.c \
53   disk.h \
54   getopt.c \
55   getopt_helpers.c \
56   load.c \
57   network.c \
58   os_installation.c \
59   os_network.c \
60   os_priority.c \
61   peer.c \
62   plugin.c \
63   program.c \
64   pseudonym.c \
65   resolver_api.c resolver.h \
66   scheduler.c \
67   server.c \
68   server_mst.c \
69   server_nc.c \
70   server_tc.c \
71   service.c \
72   signal.c \
73   strings.c \
74   time.c
75
76
77 libgnunetutil_la_LIBADD = \
78   $(GCLIBADD) $(WINLIB) \
79   $(LIBGCRYPT_LIBS) \
80   $(LTLIBICONV) \
81   -lltdl -lz $(XLIB) 
82
83 libgnunetutil_la_LDFLAGS = \
84   $(GN_LIB_LDFLAGS) \
85   -version-info 4:0:0
86
87
88 bin_PROGRAMS = \
89  gnunet-service-resolver \
90  gnunet-resolver
91
92 gnunet_service_resolver_SOURCES = \
93  gnunet-service-resolver.c         
94 gnunet_service_resolver_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(GN_LIBINTL)
97 gnunet_service_resolver_DEPENDENCIES = \
98   libgnunetutil.la
99
100
101 gnunet_resolver_SOURCES = \
102  gnunet-resolver.c         
103 gnunet_resolver_LDADD = \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(GN_LIBINTL)
106 gnunet_resolver_DEPENDENCIES = \
107   libgnunetutil.la
108
109 plugin_LTLIBRARIES = \
110   libgnunet_plugin_test.la
111
112 libgnunet_plugin_test_la_SOURCES = \
113   test_plugin_plug.c
114 libgnunet_plugin_test_la_LDFLAGS = \
115  $(GN_PLUGIN_LDFLAGS)
116
117 if HAVE_BENCHMARKS
118  BENCHMARKS = \
119   perf_crypto_hash 
120 endif
121
122 check_PROGRAMS = \
123  test_bio \
124  test_client \
125  test_common_allocation \
126  test_common_endian \
127  test_common_logging \
128  test_configuration \
129  test_container_bloomfilter \
130  test_container_meta_data \
131  test_container_multihashmap \
132  test_container_heap \
133  test_container_slist \
134  test_crypto_aes \
135  test_crypto_aes_weak \
136  test_crypto_crc \
137  test_crypto_hash \
138  test_crypto_hkdf \
139  test_crypto_ksk \
140  test_crypto_random \
141  test_crypto_rsa \
142  test_disk \
143  test_getopt \
144  test_connection \
145  test_connection_addressing \
146  test_connection_receive_cancel \
147  test_connection_timeout \
148  test_connection_timeout_no_connect \
149  test_connection_transmit_cancel \
150  test_os_network \
151  test_os_priority \
152  test_peer \
153  test_plugin \
154  test_program \
155  test_pseudonym \
156  test_resolver_api \
157  test_scheduler \
158  test_scheduler_delay \
159  test_server \
160  test_server_disconnect \
161  test_server_with_client \
162  $(SERVER_CLIENT_UNIX) \
163  test_service \
164  test_strings \
165  test_time \
166  $(BENCHMARKS) \
167  test_os_start_process 
168
169 if ENABLE_TEST_RUN
170 TESTS = $(check_PROGRAMS)
171 endif
172
173 test_bio_SOURCES = \
174  test_bio.c
175 test_bio_LDADD = \
176  $(top_builddir)/src/util/libgnunetutil.la
177
178
179 test_os_start_process_SOURCES = \
180  test_os_start_process.c
181 test_os_start_process_LDADD = \
182  $(top_builddir)/src/util/libgnunetutil.la
183
184 test_client_SOURCES = \
185  test_client.c
186 test_client_LDADD = \
187  $(top_builddir)/src/util/libgnunetutil.la  
188
189 test_common_allocation_SOURCES = \
190  test_common_allocation.c
191 test_common_allocation_LDADD = \
192  $(top_builddir)/src/util/libgnunetutil.la  
193
194 test_common_endian_SOURCES = \
195  test_common_endian.c
196 test_common_endian_LDADD = \
197  $(top_builddir)/src/util/libgnunetutil.la  
198
199 test_common_logging_SOURCES = \
200  test_common_logging.c
201 test_common_logging_LDADD = \
202  $(top_builddir)/src/util/libgnunetutil.la  
203
204 test_configuration_SOURCES = \
205  test_configuration.c
206 test_configuration_LDADD = \
207  $(top_builddir)/src/util/libgnunetutil.la  
208
209 test_container_bloomfilter_SOURCES = \
210  test_container_bloomfilter.c
211 test_container_bloomfilter_LDADD = \
212  $(top_builddir)/src/util/libgnunetutil.la  
213
214 test_container_meta_data_SOURCES = \
215  test_container_meta_data.c
216 test_container_meta_data_LDADD = \
217  $(top_builddir)/src/util/libgnunetutil.la -lextractor
218
219 test_container_multihashmap_SOURCES = \
220  test_container_multihashmap.c
221 test_container_multihashmap_LDADD = \
222  $(top_builddir)/src/util/libgnunetutil.la  
223
224 test_container_heap_SOURCES = \
225  test_container_heap.c
226 test_container_heap_LDADD = \
227  $(top_builddir)/src/util/libgnunetutil.la   
228
229 test_container_slist_SOURCES = \
230  test_container_slist.c
231 test_container_slist_LDADD = \
232  $(top_builddir)/src/util/libgnunetutil.la  
233
234 test_crypto_aes_SOURCES = \
235  test_crypto_aes.c
236 test_crypto_aes_LDADD = \
237  $(top_builddir)/src/util/libgnunetutil.la  
238
239 test_crypto_aes_weak_SOURCES = \
240  test_crypto_aes_weak.c
241 test_crypto_aes_weak_LDADD = \
242  $(top_builddir)/src/util/libgnunetutil.la  \
243  $(LIBGCRYPT_LIBS)
244
245 test_crypto_crc_SOURCES = \
246  test_crypto_crc.c
247 test_crypto_crc_LDADD = \
248  $(top_builddir)/src/util/libgnunetutil.la  
249
250 test_crypto_hash_SOURCES = \
251  test_crypto_hash.c
252 test_crypto_hash_LDADD = \
253  $(top_builddir)/src/util/libgnunetutil.la  
254
255 test_crypto_hkdf_SOURCES = \
256  test_crypto_hkdf.c
257 test_crypto_hkdf_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la  
259
260 test_crypto_ksk_SOURCES = \
261  test_crypto_ksk.c
262 test_crypto_ksk_LDADD = \
263  $(top_builddir)/src/util/libgnunetutil.la  
264
265 test_crypto_random_SOURCES = \
266  test_crypto_random.c
267 test_crypto_random_LDADD = \
268  $(top_builddir)/src/util/libgnunetutil.la  
269
270 test_crypto_rsa_SOURCES = \
271  test_crypto_rsa.c
272 test_crypto_rsa_LDADD = \
273  $(top_builddir)/src/util/libgnunetutil.la  
274
275 test_disk_SOURCES = \
276  test_disk.c
277 test_disk_LDADD = \
278  $(top_builddir)/src/util/libgnunetutil.la  
279
280 test_getopt_SOURCES = \
281  test_getopt.c
282 test_getopt_LDADD = \
283  $(top_builddir)/src/util/libgnunetutil.la  
284
285 test_connection_SOURCES = \
286  test_connection.c
287 test_connection_LDADD = \
288  $(top_builddir)/src/util/libgnunetutil.la  
289
290 test_connection_addressing_SOURCES = \
291  test_connection_addressing.c
292 test_connection_addressing_LDADD = \
293  $(top_builddir)/src/util/libgnunetutil.la  
294
295 test_connection_receive_cancel_SOURCES = \
296  test_connection_receive_cancel.c
297 test_connection_receive_cancel_LDADD = \
298  $(top_builddir)/src/util/libgnunetutil.la  
299
300 test_connection_timeout_SOURCES = \
301  test_connection_timeout.c
302 test_connection_timeout_LDADD = \
303  $(top_builddir)/src/util/libgnunetutil.la  
304
305 test_connection_timeout_no_connect_SOURCES = \
306  test_connection_timeout_no_connect.c
307 test_connection_timeout_no_connect_LDADD = \
308  $(top_builddir)/src/util/libgnunetutil.la  
309
310 test_connection_transmit_cancel_SOURCES = \
311  test_connection_transmit_cancel.c
312 test_connection_transmit_cancel_LDADD = \
313  $(top_builddir)/src/util/libgnunetutil.la  
314
315 test_os_network_SOURCES = \
316  test_os_network.c
317 test_os_network_LDADD = \
318  $(top_builddir)/src/util/libgnunetutil.la  
319
320 test_os_priority_SOURCES = \
321  test_os_priority.c
322 test_os_priority_LDADD = \
323  $(top_builddir)/src/util/libgnunetutil.la  
324
325 test_peer_SOURCES = \
326  test_peer.c
327 test_peer_LDADD = \
328 $(top_builddir)/src/util/libgnunetutil.la
329
330 test_plugin_SOURCES = \
331  test_plugin.c
332 test_plugin_LDADD = \
333  $(top_builddir)/src/util/libgnunetutil.la  
334
335 test_program_SOURCES = \
336  test_program.c
337 test_program_LDADD = \
338  $(top_builddir)/src/util/libgnunetutil.la  
339
340 test_pseudonym_SOURCES = \
341  test_pseudonym.c
342 test_pseudonym_LDADD = \
343  $(top_builddir)/src/util/libgnunetutil.la  
344
345 test_resolver_api_SOURCES = \
346  test_resolver_api.c
347 test_resolver_api_LDADD = \
348   $(top_builddir)/src/util/libgnunetutil.la  
349
350 test_scheduler_SOURCES = \
351  test_scheduler.c
352 test_scheduler_LDADD = \
353  $(top_builddir)/src/util/libgnunetutil.la  
354
355 test_scheduler_delay_SOURCES = \
356  test_scheduler_delay.c
357 test_scheduler_delay_LDADD = \
358  $(top_builddir)/src/util/libgnunetutil.la  
359
360 test_server_SOURCES = \
361  test_server.c
362 test_server_LDADD = \
363  $(top_builddir)/src/util/libgnunetutil.la  
364
365 test_server_disconnect_SOURCES = \
366  test_server_disconnect.c
367 test_server_disconnect_LDADD = \
368  $(top_builddir)/src/util/libgnunetutil.la  
369
370 test_server_with_client_SOURCES = \
371  test_server_with_client.c
372 test_server_with_client_LDADD = \
373  $(top_builddir)/src/util/libgnunetutil.la  
374
375 test_server_with_client_unix_SOURCES = \
376  test_server_with_client_unix.c
377 test_server_with_client_unix_LDADD = \
378  $(top_builddir)/src/util/libgnunetutil.la  
379
380
381 test_service_SOURCES = \
382  test_service.c
383 test_service_LDADD = \
384  $(top_builddir)/src/util/libgnunetutil.la  
385
386 test_strings_SOURCES = \
387  test_strings.c
388 test_strings_LDADD = \
389  $(top_builddir)/src/util/libgnunetutil.la  
390
391 test_time_SOURCES = \
392  test_time.c
393 test_time_LDADD = \
394  $(top_builddir)/src/util/libgnunetutil.la  
395
396 perf_crypto_hash_SOURCES = \
397  perf_crypto_hash.c
398 perf_crypto_hash_LDADD = \
399  $(top_builddir)/src/util/libgnunetutil.la  
400
401
402 EXTRA_DIST = \
403   test_configuration_data.conf \
404   test_program_data.conf \
405   test_pseudonym_data.conf \
406   test_resolver_api_data.conf \
407   test_service_data.conf