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