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