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