Soft'N'Design Software
/
projects
/
hexdump.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1286d87
)
update makefile
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 15 Jan 2023 14:32:56 +0000
(15:32 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 15 Jan 2023 14:32:56 +0000
(15:32 +0100)
makefile
patch
|
blob
|
blame
|
history
diff --git
a/makefile
b/makefile
index 77a6c83d684955ecb4f9942ee4ff0ffdd345a2c4..2e05fcb30aac0d1d09057f7c39e18e4e9711fe19 100644
(file)
--- 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
#OFLAGS += -malign-double
CFLAGS += -W -Wall -Wextra -g
CFLAGS += -std=c99 -D_XOPEN_SOURCE=500
-CFLAGS += $(OFLAGS) $(INCLUDES) $(GCOV
ER
)
-LDFLAGS += -g
+CFLAGS += $(OFLAGS) $(INCLUDES) $(GCOV)
+LDFLAGS += -g
$(GCOV)
# Targets
# Targets
@@
-22,8
+22,9
@@
ALLEXE += hexdump
SHELL = bash
SHELL = bash
-MAKE = mingw32-make
+
#
MAKE = mingw32-make
MAKEFLAGS += -s
MAKEFLAGS += -s
+include $(wildcard .makefile)
# Functions
# Functions
@@
-82,7
+83,7
@@
include $(wildcard *.ld)
gcov_%:
$(MAKE) purge
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
$(MAKE) test_$(@:gcov_%=%)
gcov `sed -e 's/\.exe:/.c/;s/\.o/.c/g' $(@:gcov_%=%.ld)`
touch gcov