1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 AM_CFLAGS = --coverage -O0
11 REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
15 plugindir = $(libdir)/gnunet
17 plugin_LTLIBRARIES = $(REST_PLUGIN)
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 = \
34 libgnunet_plugin_rest_peerinfo_la_CFLAGS = $(MHD_CFLAGS) $(AM_CFLAGS)
37 gnunet_peerinfo_SOURCES = \
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 = \
51 test_gnunet_peerinfo.py
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)
59 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
61 test_gnunet_peerinfo.py: test_gnunet_peerinfo.py.in Makefile
62 $(do_subst) < $(srcdir)/test_gnunet_peerinfo.py.in > test_gnunet_peerinfo.py
63 chmod +x test_gnunet_peerinfo.py
66 test_gnunet_peerinfo.py.in \
67 test_gnunet_peerinfo_data.conf
69 CLEANFILES = $(check_SCRIPTS)