remove initialize size to zero
[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 -luuid -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_gettext.c \
33   common_logging.c \
34   configuration.c \
35   connection.c \
36   container_bloomfilter.c \
37   container_heap.c \
38   container_meta_data.c \
39   container_multihashmap.c \
40   container_slist.c \
41   crypto_aes.c \
42   crypto_crc.c \
43   crypto_hash.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 \
61   scheduler.c \
62   server.c \
63   server_nc.c \
64   server_tc.c \
65   service.c \
66   signal.c \
67   strings.c \
68   time.c \
69   $(WINSRC)
70
71
72 libgnunetutil_la_LIBADD = \
73   $(GCLIBADD) $(WINLIB) \
74   $(LIBGCRYPT_LIBS) \
75   -lgmp -lltdl -lz -lextractor $(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_ksk \
117  test_crypto_random \
118  test_crypto_rsa \
119  test_disk \
120  test_getopt \
121  test_connection \
122  test_connection_addressing \
123  test_connection_receive_cancel \
124  test_connection_timeout \
125  test_connection_timeout_no_connect \
126  test_connection_transmit_cancel \
127  test_os_load \
128  test_os_network \
129  test_os_priority \
130  test_peer \
131  test_plugin \
132  test_program \
133  test_pseudonym \
134  test_resolver_api \
135  test_scheduler \
136  test_scheduler_delay \
137  test_server \
138  test_server_disconnect \
139  test_server_with_client \
140  test_service \
141  test_strings \
142  test_time \
143  perf_crypto_hash \
144  test_os_start_process 
145
146 TESTS = $(check_PROGRAMS)
147
148
149 test_bio_SOURCES = \
150  test_bio.c
151 test_bio_LDADD = \
152  $(top_builddir)/src/util/libgnunetutil.la
153
154
155 test_os_start_process_SOURCES = \
156  test_os_start_process.c
157 test_os_start_process_LDADD = \
158  $(top_builddir)/src/util/libgnunetutil.la
159  
160 test_client_SOURCES = \
161  test_client.c
162 test_client_LDADD = \
163  $(top_builddir)/src/util/libgnunetutil.la  
164
165 test_common_allocation_SOURCES = \
166  test_common_allocation.c
167 test_common_allocation_LDADD = \
168  $(top_builddir)/src/util/libgnunetutil.la  
169
170 test_common_endian_SOURCES = \
171  test_common_endian.c
172 test_common_endian_LDADD = \
173  $(top_builddir)/src/util/libgnunetutil.la  
174
175 test_common_logging_SOURCES = \
176  test_common_logging.c
177 test_common_logging_LDADD = \
178  $(top_builddir)/src/util/libgnunetutil.la  
179
180 test_configuration_SOURCES = \
181  test_configuration.c
182 test_configuration_LDADD = \
183  $(top_builddir)/src/util/libgnunetutil.la  
184
185 test_container_bloomfilter_SOURCES = \
186  test_container_bloomfilter.c
187 test_container_bloomfilter_LDADD = \
188  $(top_builddir)/src/util/libgnunetutil.la  
189
190 test_container_meta_data_SOURCES = \
191  test_container_meta_data.c
192 test_container_meta_data_LDADD = \
193  $(top_builddir)/src/util/libgnunetutil.la  
194
195 test_container_multihashmap_SOURCES = \
196  test_container_multihashmap.c
197 test_container_multihashmap_LDADD = \
198  $(top_builddir)/src/util/libgnunetutil.la  
199
200 test_container_heap_SOURCES = \
201  test_container_heap.c
202 test_container_heap_LDADD = \
203  $(top_builddir)/src/util/libgnunetutil.la   
204
205 test_container_slist_SOURCES = \
206  test_container_slist.c
207 test_container_slist_LDADD = \
208  $(top_builddir)/src/util/libgnunetutil.la  
209
210 test_crypto_aes_SOURCES = \
211  test_crypto_aes.c
212 test_crypto_aes_LDADD = \
213  $(top_builddir)/src/util/libgnunetutil.la  
214
215 test_crypto_aes_weak_SOURCES = \
216  test_crypto_aes_weak.c
217 test_crypto_aes_weak_LDADD = \
218  $(top_builddir)/src/util/libgnunetutil.la  
219
220 test_crypto_crc_SOURCES = \
221  test_crypto_crc.c
222 test_crypto_crc_LDADD = \
223  $(top_builddir)/src/util/libgnunetutil.la  
224
225 test_crypto_hash_SOURCES = \
226  test_crypto_hash.c
227 test_crypto_hash_LDADD = \
228  $(top_builddir)/src/util/libgnunetutil.la  
229
230 test_crypto_ksk_SOURCES = \
231  test_crypto_ksk.c
232 test_crypto_ksk_LDADD = \
233  $(top_builddir)/src/util/libgnunetutil.la  
234
235 test_crypto_random_SOURCES = \
236  test_crypto_random.c
237 test_crypto_random_LDADD = \
238  $(top_builddir)/src/util/libgnunetutil.la  
239
240 test_crypto_rsa_SOURCES = \
241  test_crypto_rsa.c
242 test_crypto_rsa_LDADD = \
243  $(top_builddir)/src/util/libgnunetutil.la  
244
245 test_disk_SOURCES = \
246  test_disk.c
247 test_disk_LDADD = \
248  $(top_builddir)/src/util/libgnunetutil.la  
249
250 test_getopt_SOURCES = \
251  test_getopt.c
252 test_getopt_LDADD = \
253  $(top_builddir)/src/util/libgnunetutil.la  
254
255 test_connection_SOURCES = \
256  test_connection.c
257 test_connection_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la  
259
260 test_connection_addressing_SOURCES = \
261  test_connection_addressing.c
262 test_connection_addressing_LDADD = \
263  $(top_builddir)/src/util/libgnunetutil.la  
264
265 test_connection_receive_cancel_SOURCES = \
266  test_connection_receive_cancel.c
267 test_connection_receive_cancel_LDADD = \
268  $(top_builddir)/src/util/libgnunetutil.la  
269
270 test_connection_timeout_SOURCES = \
271  test_connection_timeout.c
272 test_connection_timeout_LDADD = \
273  $(top_builddir)/src/util/libgnunetutil.la  
274
275 test_connection_timeout_no_connect_SOURCES = \
276  test_connection_timeout_no_connect.c
277 test_connection_timeout_no_connect_LDADD = \
278  $(top_builddir)/src/util/libgnunetutil.la  
279
280 test_connection_transmit_cancel_SOURCES = \
281  test_connection_transmit_cancel.c
282 test_connection_transmit_cancel_LDADD = \
283  $(top_builddir)/src/util/libgnunetutil.la  
284
285 test_os_load_SOURCES = \
286  test_os_load.c
287 test_os_load_LDADD = \
288  $(top_builddir)/src/util/libgnunetutil.la  
289
290 test_os_network_SOURCES = \
291  test_os_network.c
292 test_os_network_LDADD = \
293  $(top_builddir)/src/util/libgnunetutil.la  
294
295 test_os_priority_SOURCES = \
296  test_os_priority.c
297 test_os_priority_LDADD = \
298  $(top_builddir)/src/util/libgnunetutil.la  
299
300 test_peer_SOURCES = \
301  test_peer.c
302 test_peer_LDADD = \
303 $(top_builddir)/src/util/libgnunetutil.la
304
305 test_plugin_SOURCES = \
306  test_plugin.c
307 test_plugin_LDADD = \
308  $(top_builddir)/src/util/libgnunetutil.la  
309
310 test_program_SOURCES = \
311  test_program.c
312 test_program_LDADD = \
313  $(top_builddir)/src/util/libgnunetutil.la  
314
315 test_pseudonym_SOURCES = \
316  test_pseudonym.c
317 test_pseudonym_LDADD = \
318  $(top_builddir)/src/util/libgnunetutil.la  
319
320 test_resolver_api_SOURCES = \
321  test_resolver_api.c
322 test_resolver_api_LDADD = \
323   $(top_builddir)/src/util/libgnunetutil.la  
324
325 test_scheduler_SOURCES = \
326  test_scheduler.c
327 test_scheduler_LDADD = \
328  $(top_builddir)/src/util/libgnunetutil.la  
329
330 test_scheduler_delay_SOURCES = \
331  test_scheduler_delay.c
332 test_scheduler_delay_LDADD = \
333  $(top_builddir)/src/util/libgnunetutil.la  
334
335 test_server_SOURCES = \
336  test_server.c
337 test_server_LDADD = \
338  $(top_builddir)/src/util/libgnunetutil.la  
339
340 test_server_disconnect_SOURCES = \
341  test_server_disconnect.c
342 test_server_disconnect_LDADD = \
343  $(top_builddir)/src/util/libgnunetutil.la  
344
345 test_server_with_client_SOURCES = \
346  test_server_with_client.c
347 test_server_with_client_LDADD = \
348  $(top_builddir)/src/util/libgnunetutil.la  
349
350 test_service_SOURCES = \
351  test_service.c
352 test_service_LDADD = \
353  $(top_builddir)/src/util/libgnunetutil.la  
354
355 test_strings_SOURCES = \
356  test_strings.c
357 test_strings_LDADD = \
358  $(top_builddir)/src/util/libgnunetutil.la  
359
360 test_time_SOURCES = \
361  test_time.c
362 test_time_LDADD = \
363  $(top_builddir)/src/util/libgnunetutil.la  
364
365 perf_crypto_hash_SOURCES = \
366  perf_crypto_hash.c
367 perf_crypto_hash_LDADD = \
368  $(top_builddir)/src/util/libgnunetutil.la  
369
370
371 EXTRA_DIST = \
372   program_lib_argz.c \
373   program_lib_strndup.c \
374   program_lib_strnlen.c \
375   program_lib_mempcpy.c \
376   test_configuration_data.conf \
377   test_container_meta_data_image.jpg \
378   test_program_data.conf \
379   test_pseudonym_data.conf \
380   test_resolver_api_data.conf \
381   test_service_data.conf