endif
if USE_COVERAGE
- AM_CFLAGS = -fprofile-arcs -ftest-coverage
+ AM_CFLAGS = --coverage -O0
+ XLIB = -lgcov
endif
+pkgcfgdir= $(pkgdatadir)/config.d/
+
+pkgcfg_DATA = \
+ statistics.conf
lib_LTLIBRARIES = libgnunetstatistics.la
statistics_api.c statistics.h
libgnunetstatistics_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
+ $(GN_LIBINTL) $(XLIB)
libgnunetstatistics_la_LDFLAGS = \
$(GN_LIB_LDFLAGS) $(WINFLAGS) \
- -version-info 0:0:0
+ -version-info 1:0:1
bin_PROGRAMS = \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
+gnunet_statistics_DEPENDENCIES = \
+ libgnunetstatistics.la
gnunet_service_statistics_SOURCES = \
gnunet-service-statistics.c
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
-
+gnunet_service_statistics_DEPENDENCIES = \
+ libgnunetstatistics.la
check_PROGRAMS = \
- test_statistics_api
+ test_statistics_api \
+ test_statistics_api_loop \
+ test_statistics_api_watch
+if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+endif
test_statistics_api_SOURCES = \
test_statistics_api.c
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/util/libgnunetutil.la
-EXTRA_DIST = \
- test_statistics_api_data.conf
+test_statistics_api_loop_SOURCES = \
+ test_statistics_api_loop.c
+test_statistics_api_loop_LDADD = \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(top_builddir)/src/util/libgnunetutil.la
+
+test_statistics_api_watch_SOURCES = \
+ test_statistics_api_watch.c
+test_statistics_api_watch_LDADD = \
+ $(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(top_builddir)/src/util/libgnunetutil.la
check_SCRIPTS = \
test_gnunet_statistics.sh
+EXTRA_DIST = \
+ test_statistics_api_data.conf \
+ $(check_SCRIPTS)
+
+