-add get_athority test, fixes
[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 bin_PROGRAMS = \
22   gnunet-service-gns \
23   gnunet-gns-fcfsd \
24   gnunet-gns
25
26 #noinst_PROGRAMS = \
27 #  gnunet-gns-lookup
28
29 check_PROGRAMS = \
30   test_gns_simple_shorten \
31   test_gns_simple_get_authority \
32   test_gns_simple_lookup \
33   test_gns_simple_delegated_lookup
34
35
36 #  test_gns_simple_lookup
37 #  test_gns_simple_delegated_lookup
38 #  test_gns_dht_delegated_lookup
39
40
41 plugin_LTLIBRARIES = \
42   libgnunet_plugin_block_gns.la
43
44 #test_gns_twopeer_SOURCES = \
45 #  test_gns_twopeer.c
46 #test_gns_twopeer_LDADD = \
47 #  $(top_builddir)/src/util/libgnunetutil.la \
48 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
49 #  $(top_builddir)/src/testing/libgnunettesting.la
50 #test_gns_twopeer_DEPENDENCIES = \
51 #  $(top_builddir)/src/util/libgnunetutil.la \
52 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
53 #  $(top_builddir)/src/testing/libgnunettesting.la
54
55 test_gns_simple_lookup_SOURCES = \
56   test_gns_simple_lookup.c
57 test_gns_simple_lookup_LDADD = \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(top_builddir)/src/namestore/libgnunetnamestore.la \
60   $(top_builddir)/src/gns/libgnunetgns.la \
61   $(top_builddir)/src/testing/libgnunettesting.la
62 test_gns_simple_lookup_DEPENDENCIES = \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(top_builddir)/src/namestore/libgnunetnamestore.la \
65   $(top_builddir)/src/gns/libgnunetgns.la \
66   $(top_builddir)/src/testing/libgnunettesting.la
67
68 test_gns_simple_delegated_lookup_SOURCES = \
69   test_gns_simple_delegated_lookup.c
70 test_gns_simple_delegated_lookup_LDADD = \
71   $(top_builddir)/src/util/libgnunetutil.la \
72   $(top_builddir)/src/namestore/libgnunetnamestore.la \
73   $(top_builddir)/src/gns/libgnunetgns.la \
74   $(top_builddir)/src/testing/libgnunettesting.la
75 test_gns_simple_delegated_lookup_DEPENDENCIES = \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(top_builddir)/src/namestore/libgnunetnamestore.la \
78   $(top_builddir)/src/gns/libgnunetgns.la \
79   $(top_builddir)/src/testing/libgnunettesting.la
80
81 #test_gns_dht_delegated_lookup_SOURCES = \
82 #  test_gns_dht_delegated_lookup.c
83 #test_gns_dht_delegated_lookup_LDADD = \
84 #  $(top_builddir)/src/util/libgnunetutil.la \
85 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
86 #  $(top_builddir)/src/dht/libgnunetdht.la \
87 #  $(top_builddir)/src/testing/libgnunettesting.la
88 #test_gns_dht_delegated_lookup_DEPENDENCIES = \
89 #  $(top_builddir)/src/util/libgnunetutil.la \
90 #  $(top_builddir)/src/namestore/libgnunetnamestore.la \
91 #  $(top_builddir)/src/dht/libgnunetdht.la \
92 #  $(top_builddir)/src/testing/libgnunettesting.la
93
94 test_gns_simple_shorten_SOURCES = \
95   test_gns_simple_shorten.c
96 test_gns_simple_shorten_LDADD = \
97   $(top_builddir)/src/util/libgnunetutil.la \
98   $(top_builddir)/src/namestore/libgnunetnamestore.la \
99   $(top_builddir)/src/gns/libgnunetgns.la \
100   $(top_builddir)/src/testing/libgnunettesting.la
101 test_gns_simple_shorten_DEPENDENCIES = \
102   $(top_builddir)/src/util/libgnunetutil.la \
103   $(top_builddir)/src/namestore/libgnunetnamestore.la \
104   $(top_builddir)/src/gns/libgnunetgns.la \
105   $(top_builddir)/src/testing/libgnunettesting.la
106
107 test_gns_simple_get_authority_SOURCES = \
108   test_gns_simple_get_authority.c
109 test_gns_simple_get_authority_LDADD = \
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 test_gns_simple_get_authority_DEPENDENCIES = \
115   $(top_builddir)/src/util/libgnunetutil.la \
116   $(top_builddir)/src/namestore/libgnunetnamestore.la \
117   $(top_builddir)/src/gns/libgnunetgns.la \
118   $(top_builddir)/src/testing/libgnunettesting.la
119
120
121 gnunet_gns_SOURCES = \
122  gnunet-gns.c
123 gnunet_gns_LDADD = \
124   $(top_builddir)/src/gns/libgnunetgns.la \
125   $(top_builddir)/src/util/libgnunetutil.la \
126   $(top_builddir)/src/namestore/libgnunetnamestore.la \
127   $(GN_LIBINTL)
128 gnunet_gns_DEPENDENCIES = \
129   libgnunetgns.la
130
131 gnunet_service_gns_SOURCES = \
132  gnunet-service-gns.c 
133 gnunet_service_gns_LDADD = \
134   $(top_builddir)/src/tun/libgnunettun.la \
135   $(top_builddir)/src/mesh/libgnunetmesh.la \
136   $(top_builddir)/src/statistics/libgnunetstatistics.la \
137   $(top_builddir)/src/util/libgnunetutil.la \
138         $(top_builddir)/src/dns/libgnunetdns.la \
139         $(top_builddir)/src/dns/libgnunetdnsparser.la \
140         $(top_builddir)/src/dht/libgnunetdht.la \
141         $(top_builddir)/src/namestore/libgnunetnamestore.la \
142   $(GN_LIBINTL)
143 gnunet_service_gns_DEPENDENCIES = \
144   $(top_builddir)/src/tun/libgnunettun.la \
145   $(top_builddir)/src/mesh/libgnunetmesh.la \
146   $(top_builddir)/src/statistics/libgnunetstatistics.la \
147   $(top_builddir)/src/util/libgnunetutil.la \
148         $(top_builddir)/src/dns/libgnunetdns.la \
149         $(top_builddir)/src/dns/libgnunetdnsparser.la \
150         $(top_builddir)/src/dht/libgnunetdht.la \
151         $(top_builddir)/src/namestore/libgnunetnamestore.la
152
153
154 gnunet_gns_fcfsd_SOURCES = \
155  gnunet-gns-fcfsd.c 
156 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
157   $(top_builddir)/src/util/libgnunetutil.la \
158   $(top_builddir)/src/namestore/libgnunetnamestore.la \
159   $(GN_LIBINTL)
160 gnunet_gns_fcfsd_DEPENDENCIES = \
161   $(top_builddir)/src/util/libgnunetutil.la \
162   $(top_builddir)/src/namestore/libgnunetnamestore.la
163
164
165 libgnunetgns_la_SOURCES = \
166  gns_api.c gns.h
167 libgnunetgns_la_LIBADD = \
168  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
169  $(top_builddir)/src/namestore/libgnunetnamestore.la
170 libgnunetgns_la_LDFLAGS = \
171   $(GN_LIB_LDFLAGS)
172 libgnunetgns_la_DEPENDENCIES = \
173  $(top_builddir)/src/util/libgnunetutil.la \
174  $(top_builddir)/src/namestore/libgnunetnamestore.la
175
176 libgnunet_plugin_block_gns_la_SOURCES = \
177   plugin_block_gns.c
178 libgnunet_plugin_block_gns_la_LIBADD = \
179   $(top_builddir)/src/util/libgnunetutil.la \
180   $(top_builddir)/src/block/libgnunetblock.la \
181   $(top_builddir)/src/namestore/libgnunetnamestore.la
182 libgnunet_plugin_block_gns_la_LDFLAGS = \
183   $(GN_PLUGIN_LDFLAGS)
184 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
185   $(top_builddir)/src/util/libgnunetutil.la \
186   $(top_builddir)/src/block/libgnunetblock.la \
187   $(top_builddir)/src/namestore/libgnunetnamestore.la
188
189 #Build stub api
190 #libgnunetnamestore_la_SOURCES = \
191 # namestore_stub_api.c
192 #libgnunetnamestore_la_LIBADD = \
193 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
194 #libgnunetnamestore_la_LDFLAGS = \
195 #  $(GN_LIB_LDFLAGS)
196 #libgnunetnamestore_la_DEPENDENCIES = \
197 # $(top_builddir)/src/util/libgnunetutil.la
198
199 if ENABLE_TEST_RUN
200 TESTS = $(check_PROGRAMS)
201 endif
202
203 EXTRA_DIST = \
204   test_gns_simple_lookup.conf