remove 'illegal' (non-reentrant) log logic from signal handler
[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 if HAVE_MHD
10 if HAVE_JSON
11 REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
12 endif
13 endif
14
15 plugindir = $(libdir)/gnunet
16
17 plugin_LTLIBRARIES = $(REST_PLUGIN)
18
19 bin_PROGRAMS = \
20  gnunet-peerinfo
21
22 libgnunet_plugin_rest_peerinfo_la_SOURCES = \
23   plugin_rest_peerinfo.c
24 libgnunet_plugin_rest_peerinfo_la_LIBADD = \
25   $(top_builddir)/src/hello/libgnunethello.la \
26   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
27   $(top_builddir)/src/transport/libgnunettransport.la \
28   $(top_builddir)/src/rest/libgnunetrest.la \
29   $(top_builddir)/src/json/libgnunetjson.la \
30   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) \
31   $(LTLIBINTL) -ljansson $(MHD_LIBS)
32 libgnunet_plugin_rest_peerinfo_la_LDFLAGS = \
33  $(GN_PLUGIN_LDFLAGS)
34 libgnunet_plugin_rest_peerinfo_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
35
36
37 gnunet_peerinfo_SOURCES = \
38  gnunet-peerinfo.c \
39  gnunet-peerinfo_plugins.c gnunet-peerinfo_plugins.h
40 gnunet_peerinfo_LDADD = \
41   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
42   $(top_builddir)/src/transport/libgnunettransport.la \
43   $(top_builddir)/src/hello/libgnunethello.la \
44   $(top_builddir)/src/statistics/libgnunetstatistics.la \
45   $(top_builddir)/src/util/libgnunetutil.la
46 gnunet_peerinfo_LDFLAGS = \
47   $(GN_LIBINTL)
48
49 if HAVE_PYTHON
50 check_SCRIPTS = \
51  test_gnunet_peerinfo.py
52 endif
53
54 if ENABLE_TEST_RUN
55 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
56 TESTS = $(check_SCRIPTS)
57 endif
58
59 test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
60         $(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
61         chmod +x test_gnunet_peerinfo.py
62
63 EXTRA_DIST = \
64   test_gnunet_peerinfo.py.in \
65   test_gnunet_peerinfo_data.conf
66
67 CLEANFILES = $(check_SCRIPTS)