- update default values, eliminate obsolete ones
[oweals/gnunet.git] / src / peerinfo-tool / Makefile.am
1 AM_CPPFLAGS = -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_plugins.c gnunet-peerinfo_plugins.h
18
19 gnunet_peerinfo_LDADD = \
20   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
21   $(top_builddir)/src/nat/libgnunetnat.la \
22   $(top_builddir)/src/transport/libgnunettransport.la \
23   $(top_builddir)/src/hello/libgnunethello.la \
24   $(top_builddir)/src/statistics/libgnunetstatistics.la \
25   $(top_builddir)/src/util/libgnunetutil.la
26
27 if HAVE_PYTHON
28 check_SCRIPTS = \
29  test_gnunet_peerinfo.py
30 endif
31
32 if ENABLE_TEST_RUN
33 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
34 TESTS = $(check_SCRIPTS)
35 endif
36
37 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
38
39 test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
40         $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
41         chmod +x test_gnunet_peerinfo.py
42
43 EXTRA_DIST = \
44   test_gnunet_peerinfo.py.in \
45   test_gnunet_peerinfo_data.conf
46
47 CLEANFILES = $(check_SCRIPTS)