commit 39d9832e054849ed0ce36bd1d47411af4ea0b793
parent fec152c989ae1951c2120d23ead468beb8017ff0
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 24 Feb 2020 13:49:30 +0100
add missing flags for coverage analysis
Diffstat:
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am
@@ -1,6 +1,11 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_srcdir)/src/backend-lib/
+if USE_COVERAGE
+ AM_CFLAGS = --coverage -O0
+ XLIB = -lgcov
+endif
+
pkgcfgdir = $(prefix)/share/taler/config.d/
pkgcfg_DATA = \
@@ -43,4 +48,5 @@ taler_merchant_httpd_LDADD = \
-ljansson \
-lgnunetcurl \
-lgnunetjson \
- -lgnunetutil
+ -lgnunetutil \
+ $(XLIB)
diff --git a/src/merchant-tools/Makefile.am b/src/merchant-tools/Makefile.am
@@ -1,6 +1,11 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include
+if USE_COVERAGE
+ AM_CFLAGS = --coverage -O0
+ XLIB = -lgcov
+endif
+
bin_PROGRAMS = \
taler-merchant-dbinit \
taler-merchant-benchmark
@@ -13,7 +18,8 @@ taler_merchant_dbinit_LDADD = \
$(top_builddir)/src/backenddb/libtalermerchantdb.la \
-lgnunetutil \
-ltalerutil \
- -ltalerpq
+ -ltalerpq \
+ $(XLIB)
taler_merchant_benchmark_SOURCES = \
taler-merchant-benchmark.c
@@ -32,4 +38,5 @@ taler_merchant_benchmark_LDADD = \
-lgnunetjson \
-lgnunetcurl \
-lgnunetutil \
- -ljansson
+ -ljansson \
+ $(XLIB)