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