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