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