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