diff options
-rw-r--r-- | src/backend/Makefile.am | 8 | ||||
-rw-r--r-- | src/merchant-tools/Makefile.am | 11 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/backend/Makefile.am b/src/backend/Makefile.am index 4faaa1bb..1f583456 100644 --- 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 index 87e430bb..af51b888 100644 --- 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) |