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