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