aboutsummaryrefslogtreecommitdiff
path: root/src/mint-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-13 13:57:38 +0200
committerChristian Grothoff <christian@grothoff.org>2015-04-13 13:57:38 +0200
commit93bc450db36ebb41bfcc1c0d7edf5cfedbcf0741 (patch)
tree8924deecb33faf881d72b8a8ce72dd930e4cbfc8 /src/mint-tools
parent2310a3f4747edf100b4c96737426239c893a04a9 (diff)
enable code coverage configure option
Diffstat (limited to 'src/mint-tools')
-rw-r--r--src/mint-tools/Makefile.am13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mint-tools/Makefile.am b/src/mint-tools/Makefile.am
index 5230f0b62..a61ab6a93 100644
--- a/src/mint-tools/Makefile.am
+++ b/src/mint-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-mint-keyup \
taler-mint-keycheck \
@@ -15,7 +20,7 @@ taler_mint_keyup_LDADD = \
$(top_builddir)/src/util/libtalerutil.la \
$(top_builddir)/src/pq/libtalerpq.la \
$(top_builddir)/src/mintdb/libtalermintdb.la \
- -lgnunetutil
+ -lgnunetutil $(XLIB)
taler_mint_keyup_LDFLAGS = $(POSTGRESQL_LDFLAGS)
@@ -26,7 +31,7 @@ taler_mint_keycheck_LDADD = \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/util/libtalerutil.la \
$(top_builddir)/src/mintdb/libtalermintdb.la \
- -lgnunetutil
+ -lgnunetutil $(XLIB)
taler_mint_keycheck_LDFLAGS = $(POSTGRESQL_LDFLAGS)
taler_mint_reservemod_SOURCES = \
@@ -37,7 +42,7 @@ taler_mint_reservemod_LDADD = \
$(top_builddir)/src/pq/libtalerpq.la \
$(top_builddir)/src/mintdb/libtalermintdb.la \
-lpq \
- -lgnunetutil
+ -lgnunetutil $(XLIB)
taler_mint_reservemod_LDFLAGS = \
$(POSTGRESQL_LDFLAGS)
taler_mint_reservemod_CPPFLAGS = \
@@ -53,7 +58,7 @@ taler_mint_dbinit_LDADD = \
$(top_builddir)/src/pq/libtalerpq.la \
$(top_builddir)/src/mintdb/libtalermintdb.la \
-lpq \
- -lgnunetutil
+ -lgnunetutil $(XLIB)
taler_mint_dbinit_LDFLAGS = \
$(POSTGRESQL_LDFLAGS)
taler_mint_dbinit_CPPFLAGS = \