X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=makefile;fp=makefile;h=2e05fcb30aac0d1d09057f7c39e18e4e9711fe19;hb=a2b7edd4e8fb7a8ae9b561701b1cc75b677baa22;hp=77a6c83d684955ecb4f9942ee4ff0ffdd345a2c4;hpb=1286d8731e8ea9bd4948d37d4517ee876ab1f5db;p=hexdump.git diff --git a/makefile b/makefile index 77a6c83..2e05fcb 100644 --- a/makefile +++ b/makefile @@ -11,8 +11,8 @@ OFLAGS = -O4 -Os #OFLAGS += -malign-double CFLAGS += -W -Wall -Wextra -g CFLAGS += -std=c99 -D_XOPEN_SOURCE=500 -CFLAGS += $(OFLAGS) $(INCLUDES) $(GCOVER) -LDFLAGS += -g +CFLAGS += $(OFLAGS) $(INCLUDES) $(GCOV) +LDFLAGS += -g $(GCOV) # Targets @@ -22,8 +22,9 @@ ALLEXE += hexdump SHELL = bash -MAKE = mingw32-make +#MAKE = mingw32-make MAKEFLAGS += -s +include $(wildcard .makefile) # Functions @@ -82,7 +83,7 @@ include $(wildcard *.ld) gcov_%: $(MAKE) purge - CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" $(MAKE) + GCOV="-fprofile-arcs -ftest-coverage -O0" $(MAKE) $(MAKE) test_$(@:gcov_%=%) gcov `sed -e 's/\.exe:/.c/;s/\.o/.c/g' $(@:gcov_%=%.ld)` touch gcov