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/pq/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/pq') diff --git a/src/pq/Makefile.am b/src/pq/Makefile.am index db9d4aa23..341baa53c 100644 --- a/src/pq/Makefile.am +++ b/src/pq/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 + talerincludedir = $(includedir)/taler lib_LTLIBRARIES = \ @@ -11,7 +16,7 @@ libtalerpq_la_SOURCES = \ libtalerpq_la_LIBADD = \ -lgnunetutil \ - -lpq + -lpq $(XLIB) libtalerpq_la_LDFLAGS = \ $(POSTGRESQL_LDFLAGS) \ -- cgit v1.2.3