(no commit message)
[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
66 TESTS = test_dht_api $(check_SCRIPTS)
67
68 test_dht_api_SOURCES = \
69  test_dht_api.c
70 test_dht_api_LDADD = \
71  $(top_builddir)/src/util/libgnunetutil.la \
72  $(top_builddir)/src/hello/libgnunethello.la \
73  $(top_builddir)/src/dht/libgnunetdht.la
74  
75 test_dht_twopeer_SOURCES = \
76  test_dht_twopeer.c
77 test_dht_twopeer_LDADD = \
78  $(top_builddir)/src/util/libgnunetutil.la \
79  $(top_builddir)/src/testing/libgnunettesting.la \
80  $(top_builddir)/src/dht/libgnunetdht.la    
81      
82 EXTRA_DIST = \
83   $(check_SCRIPTS) \
84   test_dht_api_data.conf \
85   test_dht_api_peer1.conf \
86   test_dht_twopeer_data.conf
87
88 check_SCRIPTS = \
89   test_dht_tools.sh