increase timeout to give sparc buildbot a chance
[oweals/gnunet.git] / src / dht / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2 if MINGW
3  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
4 endif
5
6 plugindir = $(libdir)/gnunet
7
8 if HAVE_MYSQL
9  MYSQL_PLUGIN = libgnunet_plugin_dhtlog_mysql.la
10 endif
11
12 if HAVE_ZLIB
13  ZLIB_LNK = -lz
14 endif
15
16 if USE_COVERAGE
17   AM_CFLAGS = --coverage -O0
18   XLIB = -lgcov
19 endif
20
21 lib_LTLIBRARIES = libgnunetdht.la \
22  libgnunetdhtlog.la
23
24 plugin_LTLIBRARIES = \
25  $(MYSQL_PLUGIN) \
26  libgnunet_plugin_dhtlog_dummy.la \
27  libgnunet_plugin_dhtlog_mysql_dump.la \
28  libgnunet_plugin_dhtlog_mysql_dump_load.la  
29
30
31 libgnunet_plugin_dhtlog_mysql_la_SOURCES = \
32   plugin_dhtlog_mysql.c
33 libgnunet_plugin_dhtlog_mysql_la_LIBADD = \
34   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lz -lsqlite3
35 libgnunet_plugin_dhtlog_mysql_la_LDFLAGS = \
36  $(GN_PLUGIN_LDFLAGS) $(MYSQL_LDFLAGS) -lmysqlclient
37 libgnunet_plugin_dhtlog_mysql_la_CPFLAGS = \
38  $(MYSQL_CPPFLAGS)
39
40 libgnunet_plugin_dhtlog_dummy_la_SOURCES = \
41   plugin_dhtlog_dummy.c
42 libgnunet_plugin_dhtlog_dummy_la_LIBADD = \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(XLIB)
45 libgnunet_plugin_dhtlog_dummy_la_LDFLAGS = \
46  $(GN_PLUGIN_LDFLAGS)
47
48 libgnunet_plugin_dhtlog_mysql_dump_la_SOURCES = \
49   plugin_dhtlog_mysql_dump.c
50 libgnunet_plugin_dhtlog_mysql_dump_la_LIBADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(XLIB)
53 libgnunet_plugin_dhtlog_mysql_dump_la_LDFLAGS = \
54  $(GN_PLUGIN_LDFLAGS)
55  
56 libgnunet_plugin_dhtlog_mysql_dump_load_la_SOURCES = \
57   plugin_dhtlog_mysql_dump_load.c
58 libgnunet_plugin_dhtlog_mysql_dump_load_la_LIBADD = \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(XLIB)
61 libgnunet_plugin_dhtlog_mysql_dump_load_la_LDFLAGS = \
62  $(GN_PLUGIN_LDFLAGS)
63
64 libgnunetdhtlog_la_SOURCES = \
65   dhtlog.c dhtlog.h
66 libgnunetdhtlog_la_LIBADD = \
67   $(top_builddir)/src/util/libgnunetutil.la
68 libgnunetdhtlog_la_LDFLAGS = \
69   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
70   -version-info 0:0:0
71
72 libgnunetdht_la_SOURCES = \
73   dht_api.c dht.h
74 libgnunetdht_la_LIBADD = \
75   $(top_builddir)/src/util/libgnunetutil.la \
76   $(XLIB)
77 libgnunetdht_la_LDFLAGS = \
78   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
79   -version-info 0:0:0
80
81 if HAVE_EXPERIMENTAL
82 STUD_PROGS =  gnunet-service-dht-can \
83  gnunet-service-dht-freenet \
84  gnunet-service-dht-kademlia \
85  gnunet-service-dht-koorde 
86 STUD_TESTS = test_kademlia_end2end
87 endif
88
89 bin_PROGRAMS = $(STUD_PROGS) \
90  gnunet-service-dht \
91  gnunet-dht-get \
92  gnunet-dht-get-peer \
93  gnunet-dht-put 
94
95 noinst_PROGRAMS = \
96  gnunet-dht-driver 
97
98 gnunet_service_dht_SOURCES = \
99  gnunet-service-dht.c         
100 gnunet_service_dht_LDADD = \
101   $(top_builddir)/src/statistics/libgnunetstatistics.la \
102   $(top_builddir)/src/core/libgnunetcore.la \
103   $(top_builddir)/src/transport/libgnunettransport.la \
104   $(top_builddir)/src/hello/libgnunethello.la \
105   $(top_builddir)/src/datacache/libgnunetdatacache.la \
106   $(top_builddir)/src/util/libgnunetutil.la \
107   $(top_builddir)/src/dht/libgnunetdhtlog.la -lm
108
109 gnunet_service_dht_can_SOURCES = \
110  dht_can.c dht_can_helper.c dht_can_helper.h
111 gnunet_service_dht_can_LDADD = \
112   $(top_builddir)/src/statistics/libgnunetstatistics.la \
113   $(top_builddir)/src/core/libgnunetcore.la \
114   $(top_builddir)/src/transport/libgnunettransport.la \
115   $(top_builddir)/src/hello/libgnunethello.la \
116   $(top_builddir)/src/datacache/libgnunetdatacache.la \
117   $(top_builddir)/src/util/libgnunetutil.la 
118
119 gnunet_service_dht_freenet_SOURCES = \
120  dht_freenet.c 
121 gnunet_service_dht_freenet_LDADD = \
122   $(top_builddir)/src/statistics/libgnunetstatistics.la \
123   $(top_builddir)/src/core/libgnunetcore.la \
124   $(top_builddir)/src/transport/libgnunettransport.la \
125   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
126   $(top_builddir)/src/hello/libgnunethello.la \
127   $(top_builddir)/src/datacache/libgnunetdatacache.la \
128   $(top_builddir)/src/util/libgnunetutil.la 
129
130 gnunet_service_dht_kademlia_SOURCES = \
131  dht_kademlia.c dht_kademlia.h
132 gnunet_service_dht_kademlia_LDADD = \
133   $(top_builddir)/src/statistics/libgnunetstatistics.la \
134   $(top_builddir)/src/core/libgnunetcore.la \
135   $(top_builddir)/src/transport/libgnunettransport.la \
136   $(top_builddir)/src/hello/libgnunethello.la \
137   $(top_builddir)/src/datacache/libgnunetdatacache.la \
138   $(top_builddir)/src/util/libgnunetutil.la 
139
140 gnunet_service_dht_koorde_SOURCES = \
141  dht_koorde.c dht_koorde.h
142 gnunet_service_dht_koorde_LDADD = \
143   $(top_builddir)/src/statistics/libgnunetstatistics.la \
144   $(top_builddir)/src/core/libgnunetcore.la \
145   $(top_builddir)/src/transport/libgnunettransport.la \
146   $(top_builddir)/src/hello/libgnunethello.la \
147   $(top_builddir)/src/datacache/libgnunetdatacache.la \
148   $(top_builddir)/src/util/libgnunetutil.la 
149
150 gnunet_dht_get_SOURCES = \
151  gnunet-dht-get.c         
152 gnunet_dht_get_LDADD = \
153   $(top_builddir)/src/dht/libgnunetdht.la \
154   $(top_builddir)/src/core/libgnunetcore.la \
155   $(top_builddir)/src/util/libgnunetutil.la 
156
157 gnunet_dht_get_peer_SOURCES = \
158  gnunet-dht-get-peer.c         
159 gnunet_dht_get_peer_LDADD = \
160   $(top_builddir)/src/dht/libgnunetdht.la \
161   $(top_builddir)/src/hello/libgnunethello.la \
162   $(top_builddir)/src/core/libgnunetcore.la \
163   $(top_builddir)/src/util/libgnunetutil.la 
164
165 gnunet_dht_put_SOURCES = \
166  gnunet-dht-put.c         
167 gnunet_dht_put_LDADD = \
168   $(top_builddir)/src/dht/libgnunetdht.la \
169   $(top_builddir)/src/core/libgnunetcore.la \
170   $(top_builddir)/src/util/libgnunetutil.la 
171
172 gnunet_dht_driver_SOURCES = \
173  gnunet-dht-driver.c         
174 gnunet_dht_driver_LDADD = \
175   $(top_builddir)/src/dht/libgnunetdht.la \
176   $(top_builddir)/src/dht/libgnunetdhtlog.la \
177   $(top_builddir)/src/core/libgnunetcore.la \
178   $(top_builddir)/src/testing/libgnunettesting.la \
179   $(top_builddir)/src/util/libgnunetutil.la \
180   $(top_builddir)/src/dht/libgnunetdhtlog.la
181
182 check_PROGRAMS = $(STUD_TESTS) \
183  test_dht_api \
184  test_dht_twopeer \
185  test_dht_twopeer_put_get \
186  test_dht_multipeer \
187  test_dhtlog 
188 # test_hash_operations
189
190 if !DISABLE_TEST_RUN
191 TESTS = test_dht_api $(check_SCRIPTS) \
192  test_dht_twopeer \
193  test_dht_twopeer_put_get
194 endif
195
196 test_dht_api_SOURCES = \
197  test_dht_api.c
198 test_dht_api_LDADD = \
199  $(top_builddir)/src/util/libgnunetutil.la \
200  $(top_builddir)/src/hello/libgnunethello.la \
201  $(top_builddir)/src/dht/libgnunetdht.la
202
203 test_dht_multipeer_SOURCES = \
204  test_dht_multipeer.c
205 test_dht_multipeer_LDADD = \
206  $(top_builddir)/src/util/libgnunetutil.la \
207  $(top_builddir)/src/testing/libgnunettesting.la \
208  $(top_builddir)/src/dht/libgnunetdht.la  
209  
210 #test_hash_operations_SOURCES = \
211 # test_hash_operations.c
212 #test_hash_operations_LDADD = \
213 # $(top_builddir)/src/util/libgnunetutil.la \
214 # $(top_builddir)/src/testing/libgnunettesting.la \
215 # $(top_builddir)/src/dht/libgnunetdht.la 
216
217 test_dht_twopeer_SOURCES = \
218  test_dht_twopeer.c
219 test_dht_twopeer_LDADD = \
220  $(top_builddir)/src/util/libgnunetutil.la \
221  $(top_builddir)/src/testing/libgnunettesting.la \
222  $(top_builddir)/src/dht/libgnunetdht.la    
223
224 test_dht_twopeer_put_get_SOURCES = \
225  test_dht_twopeer_put_get.c
226 test_dht_twopeer_put_get_LDADD = \
227  $(top_builddir)/src/util/libgnunetutil.la \
228  $(top_builddir)/src/testing/libgnunettesting.la \
229  $(top_builddir)/src/dht/libgnunetdht.la   
230
231 test_dhtlog_SOURCES = \
232  test_dhtlog.c
233 test_dhtlog_LDADD = \
234  $(top_builddir)/src/util/libgnunetutil.la \
235  $(top_builddir)/src/testing/libgnunettesting.la \
236  $(top_builddir)/src/dht/libgnunetdht.la \
237  $(top_builddir)/src/dht/libgnunetdhtlog.la
238
239 test_kademlia_end2end_SOURCES = \
240  test_kademlia_end2end.c
241 test_kademlia_end2end_LDADD = \
242  $(top_builddir)/src/util/libgnunetutil.la \
243  $(top_builddir)/src/testing/libgnunettesting.la \
244  $(top_builddir)/src/dht/libgnunetdht.la \
245  $(top_builddir)/src/dht/libgnunetdhtlog.la
246
247 EXTRA_DIST = \
248   $(check_SCRIPTS) \
249   test_dht_api_data.conf \
250   test_dht_api_peer1.conf \
251   test_dht_twopeer_data.conf \
252   test_dht_multipeer_data.conf
253
254 check_SCRIPTS = \
255   test_dht_tools.sh