added ATS addresstype information to unix
[oweals/gnunet.git] / src / dht / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2 if MINGW
3  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
4 endif
5
6 plugindir = $(libdir)/gnunet
7
8 pkgcfgdir= $(pkgdatadir)/config.d/
9
10 dist_pkgcfg_DATA = \
11   dht.conf 
12
13 if HAVE_ZLIB
14  ZLIB_LNK = -lz
15 endif
16
17 if USE_COVERAGE
18   AM_CFLAGS = --coverage -O0
19   XLIB = -lgcov
20 endif
21
22 lib_LTLIBRARIES = \
23  libgnunetdht.la 
24
25 libgnunetdht_la_SOURCES = \
26   dht_api.c dht.h 
27 libgnunetdht_la_LIBADD = \
28   $(top_builddir)/src/util/libgnunetutil.la \
29   $(XLIB)
30 libgnunetdht_la_LDFLAGS = \
31   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
32   -version-info 0:0:0
33
34
35 plugin_LTLIBRARIES = \
36   libgnunet_plugin_block_dht.la 
37
38 libgnunet_plugin_block_dht_la_SOURCES = \
39   plugin_block_dht.c
40 libgnunet_plugin_block_dht_la_LIBADD = \
41   $(top_builddir)/src/hello/libgnunethello.la \
42   $(top_builddir)/src/block/libgnunetblock.la \
43   $(top_builddir)/src/util/libgnunetutil.la 
44 libgnunet_plugin_block_dht_la_LDFLAGS = \
45  $(GN_PLUGIN_LDFLAGS)
46 libgnunet_plugin_block_dht_la_DEPENDENCIES = \
47   $(top_builddir)/src/block/libgnunetblock.la 
48
49
50
51 bin_PROGRAMS = \
52  gnunet-service-dht \
53  gnunet-dht-get \
54  gnunet-dht-put
55
56 gnunet_service_dht_SOURCES = \
57  gnunet-service-dht.c gnunet-service-dht.h \
58  gnunet-service-dht_clients.c gnunet-service-dht_clients.h \
59  gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
60  gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
61  gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
62  gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
63  gnunet-service-dht_routing.c gnunet-service-dht_routing.h 
64 gnunet_service_dht_LDADD = \
65   $(top_builddir)/src/statistics/libgnunetstatistics.la \
66   $(top_builddir)/src/core/libgnunetcore.la \
67   $(top_builddir)/src/nse/libgnunetnse.la \
68   $(top_builddir)/src/ats/libgnunetats.la \
69   $(top_builddir)/src/transport/libgnunettransport.la \
70   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
71   $(top_builddir)/src/hello/libgnunethello.la \
72   $(top_builddir)/src/block/libgnunetblock.la \
73   $(top_builddir)/src/datacache/libgnunetdatacache.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   -lm
76
77 gnunet_dht_get_SOURCES = \
78  gnunet-dht-get.c         
79 gnunet_dht_get_LDADD = \
80   $(top_builddir)/src/dht/libgnunetdht.la \
81   $(top_builddir)/src/core/libgnunetcore.la \
82   $(top_builddir)/src/util/libgnunetutil.la 
83 gnunet_dht_get_DEPENDENCIES = \
84   libgnunetdht.la                             
85
86 gnunet_dht_put_SOURCES = \
87  gnunet-dht-put.c         
88 gnunet_dht_put_LDADD = \
89   $(top_builddir)/src/dht/libgnunetdht.la \
90   $(top_builddir)/src/core/libgnunetcore.la \
91   $(top_builddir)/src/util/libgnunetutil.la 
92 gnunet_dht_put_DEPENDENCIES = \
93   libgnunetdht.la                             
94
95 check_PROGRAMS = \
96  test_dht_api \
97  test_dht_twopeer \
98  test_dht_twopeer_put_get \
99  test_dht_twopeer_get_put \
100  test_dht_twopeer_path_tracking \
101  test_dht_multipeer \
102  test_dht_2dtorus
103
104 if ENABLE_TEST_RUN
105 TESTS = test_dht_api $(check_SCRIPTS) \
106  test_dht_twopeer \
107  test_dht_twopeer_put_get \
108  test_dht_twopeer_get_put \
109  test_dht_twopeer_path_tracking \
110  test_dht_multipeer  \
111  test_dht_2dtorus
112 endif
113
114 test_dht_api_SOURCES = \
115  test_dht_api.c
116 test_dht_api_LDADD = \
117  $(top_builddir)/src/util/libgnunetutil.la \
118  $(top_builddir)/src/hello/libgnunethello.la \
119  $(top_builddir)/src/dht/libgnunetdht.la
120 test_dht_api_DEPENDENCIES = \
121   libgnunetdht.la                           
122
123 test_dht_twopeer_SOURCES = \
124  test_dht_twopeer.c
125 test_dht_twopeer_LDADD = \
126  $(top_builddir)/src/util/libgnunetutil.la \
127  $(top_builddir)/src/testing/libgnunettesting.la \
128  $(top_builddir)/src/dht/libgnunetdht.la    
129 test_dht_twopeer_DEPENDENCIES = \
130   libgnunetdht.la                           
131
132 test_dht_twopeer_put_get_SOURCES = \
133  test_dht_twopeer_put_get.c
134 test_dht_twopeer_put_get_LDADD = \
135  $(top_builddir)/src/util/libgnunetutil.la \
136  $(top_builddir)/src/testing/libgnunettesting.la \
137  $(top_builddir)/src/dht/libgnunetdht.la   
138
139 test_dht_twopeer_get_put_SOURCES = \
140  test_dht_twopeer_get_put.c
141 test_dht_twopeer_get_put_LDADD = \
142  $(top_builddir)/src/util/libgnunetutil.la \
143  $(top_builddir)/src/testing/libgnunettesting.la \
144  $(top_builddir)/src/dht/libgnunetdht.la   
145
146 test_dht_twopeer_path_tracking_SOURCES = \
147  test_dht_twopeer_path_tracking.c
148 test_dht_twopeer_path_tracking_LDADD = \
149  $(top_builddir)/src/util/libgnunetutil.la \
150  $(top_builddir)/src/testing/libgnunettesting.la \
151  $(top_builddir)/src/dht/libgnunetdht.la   
152
153 test_dht_multipeer_SOURCES = \
154  test_dht_multipeer.c
155 test_dht_multipeer_LDADD = \
156  $(top_builddir)/src/util/libgnunetutil.la \
157  $(top_builddir)/src/statistics/libgnunetstatistics.la \
158  $(top_builddir)/src/testing/libgnunettesting.la \
159  $(top_builddir)/src/dht/libgnunetdht.la  
160 test_dht_multipeer_DEPENDENCIES = \
161   libgnunetdht.la                           
162
163 test_dht_2dtorus_SOURCES = \
164  test_dht_2dtorus.c
165 test_dht_2dtorus_LDADD = \
166  $(top_builddir)/src/util/libgnunetutil.la \
167  $(top_builddir)/src/testing/libgnunettesting.la \
168  $(top_builddir)/src/dht/libgnunetdht.la
169 test_dht_2dtorus_DEPENDENCIES = \
170   libgnunetdht.la
171
172 EXTRA_DIST = \
173   $(check_SCRIPTS) \
174   test_dht_api_data.conf \
175   test_dht_api_peer1.conf \
176   test_dht_twopeer_data.conf \
177   test_dht_multipeer_data.conf \
178   test_dht_2dtorus.conf \
179   multipeer_topo.dat
180
181 check_SCRIPTS = \
182   test_dht_tools.sh