update gcov rule
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 9 Feb 2023 09:37:35 +0000 (10:37 +0100)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Thu, 9 Feb 2023 09:37:35 +0000 (10:37 +0100)
makefile

index 25ebdc02b5414be51ec60da4609e689ddbfc587a..48382b25d7b29d5c7885454b86285dac1812eaec 100644 (file)
--- a/makefile
+++ b/makefile
@@ -83,12 +83,13 @@ include $(wildcard *.ld)
 
 gcov_%:
        $(MAKE) purge
-       GCOV="-fprofile-arcs -ftest-coverage -O0" $(MAKE)
+       GCOV="-coverage -O0" $(MAKE)
        $(MAKE) test_$(@:gcov_%=%)
        gcov `sed -e 's/\.exe:/.c/;s/\.o/.c/g' $(@:gcov_%=%.ld)`
        touch gcov
        rm -f gcov $(wildcard *.gcda *.gcno)
        $(MAKE) purge
+       grep '#####' *.c.gcov || true
 
 %.test: %.c
        $(call TITLE, "Building $@")