dhtlog updates
[oweals/gnunet.git] / src / peerinfo-tool / 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 bin_PROGRAMS = \
13  gnunet-peerinfo 
14
15 gnunet_peerinfo_SOURCES = \
16  gnunet-peerinfo.c         
17 gnunet_peerinfo_LDADD = \
18   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
19   $(top_builddir)/src/transport/libgnunettransport.la \
20   $(top_builddir)/src/util/libgnunetutil.la 
21
22 if HAVE_PYTHON_PEXPECT
23 check_SCRIPTS = \
24  test_gnunet_peerinfo.py 
25 endif
26
27 if !DISABLE_TEST_RUN
28 TESTS = $(check_SCRIPTS)
29 endif
30
31 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
32
33 test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
34         $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
35         chmod +x test_gnunet_peerinfo.py
36
37 EXTRA_DIST = \
38   test_gnunet_peerinfo.py.in \
39   test_gnunet_peerinfo_data.conf
40
41 CLEANFILES = $(check_SCRIPTS)