This commit is contained in:
2022-02-16 16:07:07 +03:00
parent 8886f3acb4
commit 99c06d1b66
7 changed files with 97 additions and 129 deletions

View File

@@ -7,7 +7,7 @@ all: clear_c build test
clear_c:
clear
clear_bin:
@echo "\e[36m-------------[clear_bin]---------------\e[0m"
@echo -e "\e[36m-------------[clear_bin]---------------\e[0m"
touch $(OUTDIR)_.com
rm $(OUTDIR)*.com
@@ -16,14 +16,14 @@ clang: all
CMPARGS= -Wall $(SRC) -o $(OUTFILE)
build:
@echo "\e[36m-------------[build]---------------\e[0m"
@echo -e "\e[36m-------------[build]---------------\e[0m"
$(CMP) -O1 -flto $(CMPARGS)
build_dbg:
@echo "\e[36m-------------[build_dbg]---------------\e[0m"
@echo -e "\e[36m-------------[build_dbg]---------------\e[0m"
$(CMP) -O0 $(CMPARGS).dbg
test:
@echo "\e[36m-------------[test]----------------\e[0m"
@echo -e "\e[36m-------------[test]----------------\e[0m"
$(OUTFILE)
valgrind: clear_c build_dbg
@echo "\e[36m-----------[valgrind]--------------\e[0m"
@echo -e "\e[36m-----------[valgrind]--------------\e[0m"
valgrind -s --read-var-info=yes --fullpath-after=DtsodC/ $(OUTFILE).dbg