dead
[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-get-peer \
28  gnunet-dht-put
29
30 gnunet_service_dht_SOURCES = \
31  gnunet-service-dht.c         
32 gnunet_service_dht_LDADD = \
33   $(top_builddir)/src/statistics/libgnunetstatistics.la \
34   $(top_builddir)/src/core/libgnunetcore.la \
35   $(top_builddir)/src/transport/libgnunettransport.la \
36   $(top_builddir)/src/hello/libgnunethello.la \
37   $(top_builddir)/src/datacache/libgnunetdatacache.la \
38   $(top_builddir)/src/util/libgnunetutil.la 
39
40 gnunet_dht_get_SOURCES = \
41  gnunet-dht-get.c         
42 gnunet_dht_get_LDADD = \
43   $(top_builddir)/src/dht/libgnunetdht.la \
44   $(top_builddir)/src/core/libgnunetcore.la \
45   $(top_builddir)/src/util/libgnunetutil.la 
46   
47 gnunet_dht_get_peer_SOURCES = \
48  gnunet-dht-get-peer.c         
49 gnunet_dht_get_peer_LDADD = \
50   $(top_builddir)/src/dht/libgnunetdht.la \
51   $(top_builddir)/src/hello/libgnunethello.la \
52   $(top_builddir)/src/core/libgnunetcore.la \
53   $(top_builddir)/src/util/libgnunetutil.la 
54
55 gnunet_dht_put_SOURCES = \
56  gnunet-dht-put.c         
57 gnunet_dht_put_LDADD = \
58   $(top_builddir)/src/dht/libgnunetdht.la \
59   $(top_builddir)/src/core/libgnunetcore.la \
60   $(top_builddir)/src/util/libgnunetutil.la 
61
62 check_PROGRAMS = \
63  test_dht_api \
64  test_dht_twopeer \
65  test_dht_twopeer_put_get
66
67 TESTS = test_dht_api $(check_SCRIPTS)
68
69 test_dht_api_SOURCES = \
70  test_dht_api.c
71 test_dht_api_LDADD = \
72  $(top_builddir)/src/util/libgnunetutil.la \
73  $(top_builddir)/src/hello/libgnunethello.la \
74  $(top_builddir)/src/dht/libgnunetdht.la
75  
76 test_dht_twopeer_SOURCES = \
77  test_dht_twopeer.c
78 test_dht_twopeer_LDADD = \
79  $(top_builddir)/src/util/libgnunetutil.la \
80  $(top_builddir)/src/testing/libgnunettesting.la \
81  $(top_builddir)/src/dht/libgnunetdht.la    
82  
83 test_dht_twopeer_put_get_SOURCES = \
84  test_dht_twopeer_put_get.c
85 test_dht_twopeer_put_get_LDADD = \
86  $(top_builddir)/src/util/libgnunetutil.la \
87  $(top_builddir)/src/testing/libgnunettesting.la \
88  $(top_builddir)/src/dht/libgnunetdht.la   
89      
90 EXTRA_DIST = \
91   $(check_SCRIPTS) \
92   test_dht_api_data.conf \
93   test_dht_api_peer1.conf \
94   test_dht_twopeer_data.conf
95
96 check_SCRIPTS = \
97   test_dht_tools.sh