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