aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5a4e524..e8e6753 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
CC=clang++
-CFLAGS=-pedantic -Wall -ggdb
+CFLAGS=-pedantic -Wall -ggdb -fsanitize=address
VFLAGS=--show-leak-kinds=all --leak-check=full
OUT=
-$(OUT): $(OUT).cpp
+$(OUT).out: $(OUT).cpp
$(CC) $(CFLAGS) $^ -o $@
-.PHONY: memcheck
-memcheck: $(OUT)
- valgrind $(VFLAGS) ./$^;
+.PHONY: run
+run: $(OUT).out
+ ./$^
+
+.PHONY: clean
+ rm -v *.out;