summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-02 00:59:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-02 13:15:06 +0200
commitf6e0f4556eabc8c2629d16ae599a153392d30d05 (patch)
tree1e2086e73968ef6ca8558b919b014e731860db09 /src/Makefile.am
parentefc7c1d86f1543870712d1a0ef4eecd67e933921 (diff)
downloadcurl-f6e0f4556eabc8c2629d16ae599a153392d30d05.tar.gz
build: provide easy code coverage measuring
Closes #1528
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index afc86f2e1..950a7ba22 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -71,6 +71,10 @@ endif
curl_LDFLAGS = @LIBMETALINK_LDFLAGS@
curl_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMETALINK_CPPFLAGS)
+@CODE_COVERAGE_RULES@
+curl_LDFLAGS += $(CODE_COVERAGE_LDFLAGS)
+CFLAGS += $(CODE_COVERAGE_CFLAGS)
+
# if unit tests are enabled, build a static library to link them with
if BUILD_UNITTESTS
noinst_LTLIBRARIES = libcurltool.la