aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 7d0c83f..0fc33d8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -14,6 +14,9 @@ ifeq ($(DEBUG), 1)
else
CFLAGS += -DNDEBUG -O3
endif
+ifeq ($(TEST), 1)
+ CFLAGS += -fprofile-arcs -ftest-coverage
+endif
LDFLAGS = -L../lib/parson -L../lib/sha1 -L../lib/pari
INCLUDES = -I. -I../lib
@@ -53,6 +56,9 @@ clean-all: clean
clean:
find . -type f -name '*.o' -exec rm {} +
+ find . -type f -name '*.gcda' -exec rm {} +
+ find . -type f -name '*.gcno' -exec rm {} +
+ find . -type f -name '*.gcov' -exec rm {} +
format:
clang-format -i $(SRC)