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