summaryrefslogtreecommitdiff
path: root/src/pq
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/pq
parent2310a3f4747edf100b4c96737426239c893a04a9 (diff)
downloadexchange-93bc450db36ebb41bfcc1c0d7edf5cfedbcf0741.tar.gz
exchange-93bc450db36ebb41bfcc1c0d7edf5cfedbcf0741.tar.bz2
exchange-93bc450db36ebb41bfcc1c0d7edf5cfedbcf0741.zip
enable code coverage configure option
Diffstat (limited to 'src/pq')
-rw-r--r--src/pq/Makefile.am7
1 files changed, 6 insertions, 1 deletions
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) \