Soft'N'Design Software
/
projects
/
calc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
help correction
[calc.git]
/
makefile
diff --git
a/makefile
b/makefile
index 08034deb07d4070f32d79d5180237effb6f8b683..25ebdc02b5414be51ec60da4609e689ddbfc587a 100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-98,18
+98,18
@@
gcov_%:
test_%: %.test %.exe
IFS=$$'\n'; RC=0; \
test_%: %.test %.exe
IFS=$$'\n'; RC=0; \
- for test in `cat $< | sed 's,${<:.test=.exe},./${<:.test=.exe},g'`; do \
+ for test in `cat $< | sed 's,${<:.test=.exe},
$(VALGRIND)
./${<:.test=.exe},g'`; do \
echo "=== $$test ==="; \
echo "=== $$test ==="; \
- eval $
(VALGRIND) $
$test; \
+ eval $$test; \
[ $$? -eq 0 ] && echo -e "\033[1;32mSUCCESS\033[0;0m" \
|| { echo -e "\033[1;31mFAILED\033[0;0m"; RC=1; }; \
done; \
test "$$RC" -ne 1
valgrind_%: %.exe
[ $$? -eq 0 ] && echo -e "\033[1;32mSUCCESS\033[0;0m" \
|| { echo -e "\033[1;31mFAILED\033[0;0m"; RC=1; }; \
done; \
test "$$RC" -ne 1
valgrind_%: %.exe
- VALGRIND="valgrind -v --leak-check=full --
show-reachable=yes --log-fd=2
"; \
+ VALGRIND="valgrind -v --leak-check=full --
log-fd=3
"; \
export VALGRIND; \
export VALGRIND; \
- $(MAKE) $(@:valgrind_%=test_%)
+ $(MAKE) $(@:valgrind_%=test_%)
3>$@.log
%.d: %.c
$(call TITLE, "Building $@")
%.d: %.c
$(call TITLE, "Building $@")
@@
-131,7
+131,7
@@
valgrind_%: %.exe
%.exe: %.o %.d
$(call TITLE, "Building $@")
%.exe: %.o %.d
$(call TITLE, "Building $@")
- $(CC) $(LDFLAGS) $
(shell ./getcomments.pl -p='linker:\s' -f='%' ${<:.o=.c}) $<
-o $@
+ $(CC) $(LDFLAGS) $
< $(shell ./getcomments.pl -p='linker:\s' -f='%' ${<:.o=.c})
-o $@
$(call PASS, SUCCESS)
## Phony
$(call PASS, SUCCESS)
## Phony