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