From 93bc450db36ebb41bfcc1c0d7edf5cfedbcf0741 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Apr 2015 13:57:38 +0200 Subject: enable code coverage configure option --- src/util/Makefile.am | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/util') diff --git a/src/util/Makefile.am b/src/util/Makefile.am index e57e1c5d2..2a5cdefef 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -1,6 +1,11 @@ # This Makefile.am is in the public domain AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LIBGCRYPT_CFLAGS) $(POSTGRESQL_CPPFLAGS) +if USE_COVERAGE + AM_CFLAGS = --coverage -O0 + XLIB = -lgcov +endif + lib_LTLIBRARIES = \ libtalerutil.la @@ -16,20 +21,21 @@ libtalerutil_la_LIBADD = \ -lgnunetutil \ $(LIBGCRYPT_LIBS) \ -ljansson \ - -lmicrohttpd + -lmicrohttpd $(XLIB) libtalerutil_la_LDFLAGS = \ -version-info 0:0:0 \ -export-dynamic -no-undefined -TESTS=\ +TESTS = \ test-json-validations check_PROGRAMS=\ test-json-validations -test_json_validations_SOURCES=test_json_validations.c -test_json_validations_LDADD=\ +test_json_validations_SOURCES = \ + test_json_validations.c +test_json_validations_LDADD = \ -lgnunetutil \ -ljansson \ libtalerutil.la -- cgit v1.2.3