From: Laurent Mazet Date: Thu, 9 Feb 2023 09:37:35 +0000 (+0100) Subject: update gcov rule X-Git-Tag: v1.1~3^2~13^2 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=e699e1d46377d0b034d1b30bdaf12133419dd064;p=calc.git update gcov rule --- diff --git a/makefile b/makefile index 25ebdc0..48382b2 100644 --- 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 $@")