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