aboutsummaryrefslogtreecommitdiffstats
path: root/config-coverage-gcc.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config-coverage-gcc.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/config-coverage-gcc.mk b/config-coverage-gcc.mk
new file mode 100644
index 0000000..a17fd55
--- /dev/null
+++ b/config-coverage-gcc.mk
@@ -0,0 +1,14 @@
+CONFIGFILE_PROPER = config.mk
+include $(CONFIGFILE_PROPER)
+
+CC = $(CC_PREFIX)gcc
+GCOV = gcov
+
+CFLAGS_COVERAGE = -g -O0 -pedantic -fprofile-arcs -ftest-coverage
+LDFLAGS_COVERAGE = -lgcov -fprofile-arcs
+
+CFLAGS = -std=c11 $(CFLAGS_COVERAGE)
+LDFLAGS = -lblake $(LDFLAGS_COVERAGE)
+
+coverage: check
+ $(GCOV) -pr $(SRC) 2>&1