-large cleanup and bugfixes
[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_resolver.c \
137  gnunet-service-gns_interceptor.c
138 gnunet_service_gns_LDADD = \
139   $(top_builddir)/src/tun/libgnunettun.la \
140   $(top_builddir)/src/mesh/libgnunetmesh.la \
141   $(top_builddir)/src/statistics/libgnunetstatistics.la \
142   $(top_builddir)/src/util/libgnunetutil.la \
143         $(top_builddir)/src/dns/libgnunetdns.la \
144         $(top_builddir)/src/dns/libgnunetdnsparser.la \
145         $(top_builddir)/src/dht/libgnunetdht.la \
146         $(top_builddir)/src/namestore/libgnunetnamestore.la \
147   $(GN_LIBINTL)
148 gnunet_service_gns_DEPENDENCIES = \
149   $(top_builddir)/src/tun/libgnunettun.la \
150   $(top_builddir)/src/mesh/libgnunetmesh.la \
151   $(top_builddir)/src/statistics/libgnunetstatistics.la \
152   $(top_builddir)/src/util/libgnunetutil.la \
153         $(top_builddir)/src/dns/libgnunetdns.la \
154         $(top_builddir)/src/dns/libgnunetdnsparser.la \
155         $(top_builddir)/src/dht/libgnunetdht.la \
156         $(top_builddir)/src/namestore/libgnunetnamestore.la
157
158
159 gnunet_gns_fcfsd_SOURCES = \
160  gnunet-gns-fcfsd.c 
161 gnunet_gns_fcfsd_LDADD = -lmicrohttpd \
162   $(top_builddir)/src/util/libgnunetutil.la \
163   $(top_builddir)/src/namestore/libgnunetnamestore.la \
164   $(GN_LIBINTL)
165 gnunet_gns_fcfsd_DEPENDENCIES = \
166   $(top_builddir)/src/util/libgnunetutil.la \
167   $(top_builddir)/src/namestore/libgnunetnamestore.la
168
169
170 libgnunetgns_la_SOURCES = \
171  gns_api.c gns.h
172 libgnunetgns_la_LIBADD = \
173  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
174  $(top_builddir)/src/namestore/libgnunetnamestore.la
175 libgnunetgns_la_LDFLAGS = \
176   $(GN_LIB_LDFLAGS)
177 libgnunetgns_la_DEPENDENCIES = \
178  $(top_builddir)/src/util/libgnunetutil.la \
179  $(top_builddir)/src/namestore/libgnunetnamestore.la
180
181 libgnunet_plugin_block_gns_la_SOURCES = \
182   plugin_block_gns.c
183 libgnunet_plugin_block_gns_la_LIBADD = \
184   $(top_builddir)/src/util/libgnunetutil.la \
185   $(top_builddir)/src/block/libgnunetblock.la \
186   $(top_builddir)/src/namestore/libgnunetnamestore.la
187 libgnunet_plugin_block_gns_la_LDFLAGS = \
188   $(GN_PLUGIN_LDFLAGS)
189 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
190   $(top_builddir)/src/util/libgnunetutil.la \
191   $(top_builddir)/src/block/libgnunetblock.la \
192   $(top_builddir)/src/namestore/libgnunetnamestore.la
193
194 #Build stub api
195 #libgnunetnamestore_la_SOURCES = \
196 # namestore_stub_api.c
197 #libgnunetnamestore_la_LIBADD = \
198 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
199 #libgnunetnamestore_la_LDFLAGS = \
200 #  $(GN_LIB_LDFLAGS)
201 #libgnunetnamestore_la_DEPENDENCIES = \
202 # $(top_builddir)/src/util/libgnunetutil.la
203
204 if ENABLE_TEST_RUN
205 TESTS = $(check_PROGRAMS)
206 endif
207
208 EXTRA_DIST = \
209   test_gns_simple_lookup.conf