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