-new 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
24 #noinst_PROGRAMS = \
25 #  gnunet-gns-lookup
26
27 check_SCRIPTS = \
28  test_gnunet_gns.sh
29
30 check_PROGRAMS = \
31   test_gns_simple_lookup \
32   test_gns_simple_delegated_lookup \
33   test_gns_dht_delegated_lookup
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 #gnunet_gns_lookup_SOURCES = \
86 # gnunet-gns-lookup.c
87 #gnunet_gns_lookup_LDADD = \
88 #  $(top_builddir)/src/gns/libgnunetgns.la \
89 #  $(top_builddir)/src/util/libgnunetutil.la \
90 #  $(GN_LIBINTL)
91 #gnunet_dns_lookup_DEPENDENCIES = \
92 #  libgnunetgns.la
93
94 gnunet_service_gns_SOURCES = \
95  gnunet-service-gns.c 
96 gnunet_service_gns_LDADD = \
97   $(top_builddir)/src/tun/libgnunettun.la \
98   $(top_builddir)/src/mesh/libgnunetmesh.la \
99   $(top_builddir)/src/statistics/libgnunetstatistics.la \
100   $(top_builddir)/src/util/libgnunetutil.la \
101         $(top_builddir)/src/dns/libgnunetdns.la \
102         $(top_builddir)/src/dns/libgnunetdnsparser.la \
103         $(top_builddir)/src/dht/libgnunetdht.la \
104         $(top_builddir)/src/namestore/libgnunetnamestore.la \
105   $(GN_LIBINTL)
106 gnunet_service_gns_DEPENDENCIES = \
107   $(top_builddir)/src/tun/libgnunettun.la \
108   $(top_builddir)/src/mesh/libgnunetmesh.la \
109   $(top_builddir)/src/statistics/libgnunetstatistics.la \
110   $(top_builddir)/src/util/libgnunetutil.la \
111         $(top_builddir)/src/dns/libgnunetdns.la \
112         $(top_builddir)/src/dns/libgnunetdnsparser.la \
113         $(top_builddir)/src/dht/libgnunetdht.la \
114         libgnunetnamestore.la
115
116 libgnunetgns_la_SOURCES = \
117  gns_api.c gns.h
118 libgnunetgns_la_LIBADD = \
119  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
120 libgnunetgns_la_LDFLAGS = \
121   $(GN_LIB_LDFLAGS)
122 libgnunetgns_la_DEPENDENCIES = \
123  $(top_builddir)/src/util/libgnunetutil.la
124
125 libgnunet_plugin_block_gns_la_SOURCES = \
126   plugin_block_gns.c
127 libgnunet_plugin_block_gns_la_LIBADD = \
128   $(top_builddir)/src/util/libgnunetutil.la \
129   $(top_builddir)/src/block/libgnunetblock.la \
130   $(top_builddir)/src/namestore/libgnunetnamestore.la
131 libgnunet_plugin_block_gns_la_LDFLAGS = \
132   $(GN_PLUGIN_LDFLAGS)
133 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
134   $(top_builddir)/src/util/libgnunetutil.la \
135   $(top_builddir)/src/block/libgnunetblock.la \
136   $(top_builddir)/src/namestore/libgnunetnamestore.la
137
138 #Build stub api
139 #libgnunetnamestore_la_SOURCES = \
140 # namestore_stub_api.c
141 #libgnunetnamestore_la_LIBADD = \
142 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
143 #libgnunetnamestore_la_LDFLAGS = \
144 #  $(GN_LIB_LDFLAGS)
145 #libgnunetnamestore_la_DEPENDENCIES = \
146 # $(top_builddir)/src/util/libgnunetutil.la
147
148 if ENABLE_TEST_RUN
149 TESTS = $(check_PROGRAMS)  $(check_SCRIPTS)
150 endif
151
152 EXTRA_DIST = \
153   $(check_SCRIPTS) \
154   test_gns_simple_lookup.conf