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