-remove debug message
[oweals/gnunet.git] / src / peerinfo-tool / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if USE_COVERAGE
5   AM_CFLAGS = --coverage -O0
6   XLIB = -lgcov
7 endif
8
9 REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
10
11 plugindir = $(libdir)/gnunet
12
13 plugin_LTLIBRARIES = $(REST_PLUGIN)
14
15 bin_PROGRAMS = \
16  gnunet-peerinfo
17
18 libgnunet_plugin_rest_peerinfo_la_SOURCES = \
19   plugin_rest_peerinfo.c
20 libgnunet_plugin_rest_peerinfo_la_LIBADD = \
21   $(top_builddir)/src/hello/libgnunethello.la \
22   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
23   $(top_builddir)/src/transport/libgnunettransport.la \
24   $(top_builddir)/src/rest/libgnunetrest.la \
25   $(top_builddir)/src/json/libgnunetjson.la \
26   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
27   $(LTLIBINTL) -ljansson $(MHD_LIBS)
28 libgnunet_plugin_rest_peerinfo_la_LDFLAGS = \
29  $(GN_PLUGIN_LDFLAGS)
30 libgnunet_plugin_rest_peerinfo_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
31
32
33 gnunet_peerinfo_SOURCES = \
34  gnunet-peerinfo.c \
35  gnunet-peerinfo_plugins.c gnunet-peerinfo_plugins.h
36 gnunet_peerinfo_LDADD = \
37   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
38   $(top_builddir)/src/transport/libgnunettransport.la \
39   $(top_builddir)/src/hello/libgnunethello.la \
40   $(top_builddir)/src/statistics/libgnunetstatistics.la \
41   $(top_builddir)/src/util/libgnunetutil.la
42 gnunet_peerinfo_LDFLAGS = \
43   $(GN_LIBINTL)
44
45 if HAVE_PYTHON
46 check_SCRIPTS = \
47  test_gnunet_peerinfo.py
48 endif
49
50 if ENABLE_TEST_RUN
51 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
52 TESTS = $(check_SCRIPTS)
53 endif
54
55 test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
56         $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
57         chmod +x test_gnunet_peerinfo.py
58
59 EXTRA_DIST = \
60   test_gnunet_peerinfo.py.in \
61   test_gnunet_peerinfo_data.conf
62
63 CLEANFILES = $(check_SCRIPTS)