-shortening in cli app (in progress)
[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_SOURCES = \
85  gnunet-gns.c
86 gnunet_gns_LDADD = \
87   $(top_builddir)/src/gns/libgnunetgns.la \
88   $(top_builddir)/src/util/libgnunetutil.la \
89   $(GN_LIBINTL)
90 gnunet_gns_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 libgnunetgns_la_SOURCES = \
128  gns_api.c gns.h
129 libgnunetgns_la_LIBADD = \
130  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
131 libgnunetgns_la_LDFLAGS = \
132   $(GN_LIB_LDFLAGS)
133 libgnunetgns_la_DEPENDENCIES = \
134  $(top_builddir)/src/util/libgnunetutil.la
135
136 libgnunet_plugin_block_gns_la_SOURCES = \
137   plugin_block_gns.c
138 libgnunet_plugin_block_gns_la_LIBADD = \
139   $(top_builddir)/src/util/libgnunetutil.la \
140   $(top_builddir)/src/block/libgnunetblock.la \
141   $(top_builddir)/src/namestore/libgnunetnamestore.la
142 libgnunet_plugin_block_gns_la_LDFLAGS = \
143   $(GN_PLUGIN_LDFLAGS)
144 libgnunet_plugin_block_gns_la_DEPENDENCIES = \
145   $(top_builddir)/src/util/libgnunetutil.la \
146   $(top_builddir)/src/block/libgnunetblock.la \
147   $(top_builddir)/src/namestore/libgnunetnamestore.la
148
149 #Build stub api
150 #libgnunetnamestore_la_SOURCES = \
151 # namestore_stub_api.c
152 #libgnunetnamestore_la_LIBADD = \
153 # $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
154 #libgnunetnamestore_la_LDFLAGS = \
155 #  $(GN_LIB_LDFLAGS)
156 #libgnunetnamestore_la_DEPENDENCIES = \
157 # $(top_builddir)/src/util/libgnunetutil.la
158
159 if ENABLE_TEST_RUN
160 #TESTS = $(check_PROGRAMS)
161 endif
162
163 EXTRA_DIST = \
164   test_gns_simple_lookup.conf