1 INCLUDES = -I$(top_srcdir)/src/include
3 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
6 plugindir = $(libdir)/gnunet
9 MYSQL_PLUGIN = libgnunet_plugin_dhtlog_mysql.la
17 AM_CFLAGS = --coverage -O0
21 lib_LTLIBRARIES = libgnunetdht.la \
24 plugin_LTLIBRARIES = \
26 libgnunet_plugin_dhtlog_dummy.la \
27 libgnunet_plugin_dhtlog_mysql_dump.la \
28 libgnunet_plugin_dhtlog_mysql_dump_load.la
31 libgnunet_plugin_dhtlog_mysql_la_SOURCES = \
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 = \
40 libgnunet_plugin_dhtlog_dummy_la_SOURCES = \
42 libgnunet_plugin_dhtlog_dummy_la_LIBADD = \
43 $(top_builddir)/src/util/libgnunetutil.la \
45 libgnunet_plugin_dhtlog_dummy_la_LDFLAGS = \
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 \
53 libgnunet_plugin_dhtlog_mysql_dump_la_LDFLAGS = \
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 \
61 libgnunet_plugin_dhtlog_mysql_dump_load_la_LDFLAGS = \
64 libgnunetdhtlog_la_SOURCES = \
66 libgnunetdhtlog_la_LIBADD = \
67 $(top_builddir)/src/util/libgnunetutil.la
68 libgnunetdhtlog_la_LDFLAGS = \
69 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
72 libgnunetdht_la_SOURCES = \
74 libgnunetdht_la_LIBADD = \
75 $(top_builddir)/src/util/libgnunetutil.la \
77 libgnunetdht_la_LDFLAGS = \
78 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
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
89 bin_PROGRAMS = $(STUD_PROGS) \
98 gnunet_service_dht_SOURCES = \
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
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
119 gnunet_service_dht_freenet_SOURCES = \
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
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
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
150 gnunet_dht_get_SOURCES = \
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
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
165 gnunet_dht_put_SOURCES = \
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
172 gnunet_dht_driver_SOURCES = \
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
182 check_PROGRAMS = $(STUD_TESTS) \
185 test_dht_twopeer_put_get \
188 # test_hash_operations
191 TESTS = test_dht_api $(check_SCRIPTS) \
193 test_dht_twopeer_put_get
196 test_dht_api_SOURCES = \
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
203 test_dht_multipeer_SOURCES = \
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
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
217 test_dht_twopeer_SOURCES = \
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
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
231 test_dhtlog_SOURCES = \
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
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
249 test_dht_api_data.conf \
250 test_dht_api_peer1.conf \
251 test_dht_twopeer_data.conf \
252 test_dht_multipeer_data.conf