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