diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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; |