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