1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 pkgcfgdir= $(pkgdatadir)/config.d/
6 libexecdir= $(pkglibdir)/libexec/
12 AM_CFLAGS = --coverage -O0
16 lib_LTLIBRARIES = libgnunetarm.la
18 libgnunetarm_la_SOURCES = \
19 arm_api.c arm_monitor_api.c arm.h
20 libgnunetarm_la_LIBADD = \
21 $(top_builddir)/src/util/libgnunetutil.la \
23 libgnunetarm_la_LDFLAGS = \
24 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
37 gnunet_arm_SOURCES = \
41 $(top_builddir)/src/util/libgnunetutil.la \
44 gnunet_service_arm_SOURCES = \
46 gnunet_service_arm_LDADD = \
47 $(top_builddir)/src/util/libgnunetutil.la \
50 mockup_service_SOURCES = \
52 mockup_service_LDADD = \
53 $(top_builddir)/src/util/libgnunetutil.la
58 test_exponential_backoff \
59 test_gnunet_service_arm
67 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
68 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
71 test_arm_api_SOURCES = \
73 test_arm_api_LDADD = \
75 $(top_builddir)/src/util/libgnunetutil.la
77 test_exponential_backoff_SOURCES = \
78 test_exponential_backoff.c
79 test_exponential_backoff_LDADD = \
81 $(top_builddir)/src/util/libgnunetutil.la
83 test_gnunet_service_arm_SOURCES = \
84 test_gnunet_service_arm.c
85 test_gnunet_service_arm_LDADD = \
87 $(top_builddir)/src/util/libgnunetutil.la
89 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
93 $(do_subst) < $(srcdir)/$< > $@
96 test_gnunet_arm.py: test_gnunet_arm.py.in Makefile
97 $(do_subst) < $(srcdir)/test_gnunet_arm.py.in > test_gnunet_arm.py
98 chmod +x test_gnunet_arm.py
101 test_arm_api_data.conf \
102 test_gnunet_arm.py.in