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