basic find peer functionality, added to test_dht_api testcase
[oweals/gnunet.git] / src / dht / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 lib_LTLIBRARIES = libgnunetdht.la
13
14 libgnunetdht_la_SOURCES = \
15   dht_api.c dht.h
16 libgnunetdht_la_LIBADD = \
17   $(top_builddir)/src/util/libgnunetutil.la \
18   $(XLIB)
19 libgnunetdht_la_LDFLAGS = \
20   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
21   -version-info 0:0:0
22
23
24 bin_PROGRAMS = \
25  gnunet-service-dht \
26  gnunet-dht-get \
27  gnunet-dht-put
28
29 gnunet_service_dht_SOURCES = \
30  gnunet-service-dht.c         
31 gnunet_service_dht_LDADD = \
32   $(top_builddir)/src/statistics/libgnunetstatistics.la \
33   $(top_builddir)/src/core/libgnunetcore.la \
34   $(top_builddir)/src/transport/libgnunettransport.la \
35   $(top_builddir)/src/hello/libgnunethello.la \
36   $(top_builddir)/src/datacache/libgnunetdatacache.la \
37   $(top_builddir)/src/util/libgnunetutil.la 
38
39 gnunet_dht_get_SOURCES = \
40  gnunet-dht-get.c         
41 gnunet_dht_get_LDADD = \
42   $(top_builddir)/src/dht/libgnunetdht.la \
43   $(top_builddir)/src/core/libgnunetcore.la \
44   $(top_builddir)/src/util/libgnunetutil.la 
45
46 gnunet_dht_put_SOURCES = \
47  gnunet-dht-put.c         
48 gnunet_dht_put_LDADD = \
49   $(top_builddir)/src/dht/libgnunetdht.la \
50   $(top_builddir)/src/core/libgnunetcore.la \
51   $(top_builddir)/src/util/libgnunetutil.la 
52
53 check_PROGRAMS = \
54  test_dht_api 
55
56 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
57
58 test_dht_api_SOURCES = \
59  test_dht_api.c
60 test_dht_api_LDADD = \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(top_builddir)/src/dht/libgnunetdht.la    
63
64 EXTRA_DIST = \
65   test_dht_api_data.conf 
66
67 check_SCRIPTS = \
68   test_dht_tools.sh