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