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