X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=makefile;fp=makefile;h=48382b25d7b29d5c7885454b86285dac1812eaec;hb=e699e1d46377d0b034d1b30bdaf12133419dd064;hp=25ebdc02b5414be51ec60da4609e689ddbfc587a;hpb=7059478fd3b758df4177b9b409bfa927cb959937;p=calc.git 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 $@")