-pseu caching + test
[oweals/gnunet.git] / src / gns / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 plugindir = $(libdir)/gnunet
14
15 pkgcfg_DATA = \
16   gns.conf
17
18 lib_LTLIBRARIES = \
19   libgnunetgns.la
20
21 if HAVE_MHD
22  DO_FCFSD=gnunet-gns-fcfsd
23 endif
24
25 bin_PROGRAMS = \
26   gnunet-service-gns \
27   $(DO_FCFSD) \
28   gnunet-gns
29
30 #noinst_PROGRAMS = \
31 #  gnunet-gns-lookup
32
33 check_PROGRAMS = \
34   test_gns_simple_shorten \
35   test_gns_simple_get_authority \
36   test_gns_simple_lookup \
37   test_gns_simple_delegated_lookup \
38   test_gns_dht_delegated_lookup \
39   test_gns_pseu_shorten
40
41
42 #  test_gns_simple_lookup
43 #  test_gns_simple_delegated_lookup
44 #  test_gns_dht_delegated_lookup
45
46
47 plugin_LTLIBRARIES = \
48   libgnunet_plugin_block_gns.la
49
50 #test_gns_twopeer_SOURCES = \
51 #  test_gns_twopeer.c
52 #test_gns_twopeer_LDADD = \
53 #  $(top_builddir)/src/util/libgnunetutil.la \
54 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
55 #  $(top_builddir)/src/testing/libgnunettesting.la
56 #test_gns_twopeer_DEPENDENCIES = \
57 #  $(top_builddir)/src/util/libgnunetutil.la \
58 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
59 #  $(top_builddir)/src/testing/libgnunettesting.la
60
61 test_gns_simple_lookup_SOURCES = \
62   test_gns_simple_lookup.c
63 test_gns_simple_lookup_LDADD = \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(top_builddir)/src/namestore/libgnunetnamestore.la \
66   $(top_builddir)/src/gns/libgnunetgns.la \
67   $(top_builddir)/src/testing/libgnunettesting.la
68 test_gns_simple_lookup_DEPENDENCIES = \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/namestore/libgnunetnamestore.la \
71   $(top_builddir)/src/gns/libgnunetgns.la \
72   $(top_builddir)/src/testing/libgnunettesting.la
73
74 test_gns_simple_delegated_lookup_SOURCES = \
75   test_gns_simple_delegated_lookup.c
76 test_gns_simple_delegated_lookup_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(top_builddir)/src/namestore/libgnunetnamestore.la \
79   $(top_builddir)/src/gns/libgnunetgns.la \
80   $(top_builddir)/src/testing/libgnunettesting.la
81 test_gns_simple_delegated_lookup_DEPENDENCIES = \
82   $(top_builddir)/src/util/libgnunetutil.la \
83   $(top_builddir)/src/namestore/libgnunetnamestore.la \
84   $(top_builddir)/src/gns/libgnunetgns.la \
85   $(top_builddir)/src/testing/libgnunettesting.la
86
87 test_gns_dht_delegated_lookup_SOURCES = \
88   test_gns_dht_delegated_lookup.c
89 test_gns_dht_delegated_lookup_LDADD = \
90   $(top_builddir)/src/util/libgnunetutil.la \
91   $(top_builddir)/src/namestore/libgnunetnamestore.la \
92   $(top_builddir)/src/dht/libgnunetdht.la \
93   $(top_builddir)/src/gns/libgnunetgns.la \
94   $(top_builddir)/src/testing/libgnunettesting.la
95 test_gns_dht_delegated_lookup_DEPENDENCIES = \
96   $(top_builddir)/src/util/libgnunetutil.la \
97   $(top_builddir)/src/namestore/libgnunetnamestore.la \
98   $(top_builddir)/src/dht/libgnunetdht.la \
99   $(top_builddir)/src/gns/libgnunetgns.la \
100   $(top_builddir)/src/testing/libgnunettesting.la
101
102 test_gns_simple_shorten_SOURCES = \
103   test_gns_simple_shorten.c
104 test_gns_simple_shorten_LDADD = \
105   $(top_builddir)/src/util/libgnunetutil.la \
106   $(top_builddir)/src/namestore/libgnunetnamestore.la \
107   $(top_builddir)/src/gns/libgnunetgns.la \
108   $(top_builddir)/src/testing/libgnunettesting.la
109 test_gns_simple_shorten_DEPENDENCIES = \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   $(top_builddir)/src/namestore/libgnunetnamestore.la \
112   $(top_builddir)/src/gns/libgnunetgns.la \
113   $(top_builddir)/src/testing/libgnunettesting.la
114
115 test_gns_simple_get_authority_SOURCES = \
116   test_gns_simple_get_authority.c
117 test_gns_simple_get_authority_LDADD = \
118   $(top_builddir)/src/util/libgnunetutil.la \
119   $(top_builddir)/src/namestore/libgnunetnamestore.la \
120   $(top_builddir)/src/gns/libgnunetgns.la \
121   $(top_builddir)/src/testing/libgnunettesting.la
122 test_gns_simple_get_authority_DEPENDENCIES = \
123   $(top_builddir)/src/util/libgnunetutil.la \
124   $(top_builddir)/src/namestore/libgnunetnamestore.la \
125   $(top_builddir)/src/gns/libgnunetgns.la \
126   $(top_builddir)/src/testing/libgnunettesting.la
127
128
129 test_gns_pseu_shorten_SOURCES = \
130   test_gns_pseu_shorten.c
131 test_gns_pseu_shorten_LDADD = \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   $(top_builddir)/src/namestore/libgnunetnamestore.la \
134   $(top_builddir)/src/dht/libgnunetdht.la \
135   $(top_builddir)/src/gns/libgnunetgns.la \
136   $(top_builddir)/src/testing/libgnunettesting.la
137 test_gns_pseu_shorten_DEPENDENCIES = \
138   $(top_builddir)/src/util/libgnunetutil.la \
139   $(top_builddir)/src/namestore/libgnunetnamestore.la \
140   $(top_builddir)/src/dht/libgnunetdht.la \
141   $(top_builddir)/src/gns/libgnunetgns.la \
142   $(top_builddir)/src/testing/libgnunettesting.la
143
144 gnunet_gns_SOURCES = \
145  gnunet-gns.c
146 gnunet_gns_LDADD = \
147   $(top_builddir)/src/gns/libgnunetgns.la \
148   $(top_builddir)/src/util/libgnunetutil.la \
149   $(top_builddir)/src/namestore/libgnunetnamestore.la \
150   $(GN_LIBINTL)
151 gnunet_gns_DEPENDENCIES = \
152   libgnunetgns.la
153
154 gnunet_service_gns_SOURCES = \
155  gnunet-service-gns.c \
156  gnunet-service-gns_resolver.c \
157  gnunet-service-gns_interceptor.c
158 gnunet_service_gns_LDADD = \
159   $(top_builddir)/src/tun/libgnunettun.la \
160   $(top_builddir)/src/mesh/libgnunetmesh.la \
161   $(top_builddir)/src/statistics/libgnunetstatistics.la \
162   $(top_builddir)/src/util/libgnunetutil.la \
163         $(top_builddir)/src/dns/libgnunetdns.la \
164         $(top_builddir)/src/dns/libgnunetdnsparser.la \
165         $(top_builddir)/src/dht/libgnunetdht.la \
166         $(top_builddir)/src/namestore/libgnunetnamestore.la \
167   $(GN_LIBINTL)
168 gnunet_service_gns_DEPENDENCIES = \
169   $(top_builddir)/src/tun/libgnunettun.la \
170   $(top_builddir)/src/mesh/libgnunetmesh.la \
171   $(top_builddir)/src/statistics/libgnunetstatistics.la \
172   $(top_builddir)/src/util/libgnunetutil.la \
173         $(top_builddir)/src/dns/libgnunetdns.la \
174         $(top_builddir)/src/dns/libgnunetdnsparser.la \
175         $(top_builddir)/src/dht/libgnunetdht.la \
176         $(top_builddir)/src/namestore/libgnunetnamestore.la
177
178
179 gnunet_gns_fcfsd_SOURCES = \
180  gnunet-gns-fcfsd.c 
181 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
182   $(top_builddir)/src/util/libgnunetutil.la \
183   $(top_builddir)/src/namestore/libgnunetnamestore.la \
184   $(GN_LIBINTL)
185 gnunet_gns_fcfsd_DEPENDENCIES = \
186   $(top_builddir)/src/util/libgnunetutil.la \
187   $(top_builddir)/src/namestore/libgnunetnamestore.la
188
189
190 libgnunetgns_la_SOURCES = \
191  gns_api.c gns.h
192 libgnunetgns_la_LIBADD = \
193  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
194  $(top_builddir)/src/namestore/libgnunetnamestore.la
195 libgnunetgns_la_LDFLAGS = \
196   $(GN_LIB_LDFLAGS)
197 libgnunetgns_la_DEPENDENCIES = \
198  $(top_builddir)/src/util/libgnunetutil.la \
199  $(top_builddir)/src/namestore/libgnunetnamestore.la
200
201 libgnunet_plugin_block_gns_la_SOURCES = \
202   plugin_block_gns.c
203 libgnunet_plugin_block_gns_la_LIBADD = \
204   $(top_builddir)/src/util/libgnunetutil.la \
205   $(top_builddir)/src/block/libgnunetblock.la \
206   $(top_builddir)/src/namestore/libgnunetnamestore.la
207 libgnunet_plugin_block_gns_la_LDFLAGS = \
208   $(GN_PLUGIN_LDFLAGS)
209 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
210   $(top_builddir)/src/util/libgnunetutil.la \
211   $(top_builddir)/src/block/libgnunetblock.la \
212   $(top_builddir)/src/namestore/libgnunetnamestore.la
213
214 #Build stub api
215 #libgnunetnamestore_la_SOURCES = \
216 # namestore_stub_api.c
217 #libgnunetnamestore_la_LIBADD = \
218 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
219 #libgnunetnamestore_la_LDFLAGS = \
220 #  $(GN_LIB_LDFLAGS)
221 #libgnunetnamestore_la_DEPENDENCIES = \
222 # $(top_builddir)/src/util/libgnunetutil.la
223
224 if ENABLE_TEST_RUN
225 TESTS = $(check_PROGRAMS)
226 endif
227
228 EXTRA_DIST = \
229   test_gns_simple_lookup.conf