diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -1,17 +1,11 @@ CC=clang++ CFLAGS=-pedantic -Wall -ggdb VFLAGS=--show-leak-kinds=all --leak-check=full +OUT= -list: list.cpp +$(OUT): $(OUT).cpp $(CC) $(CFLAGS) $^ -o $@ -.PHONY: memcheck_list -memcheck_list: list - valgrind $(VFLAGS) ./$^; - -btree: btree.cpp - $(CC) $(CFLAGS) $^ -o $@ - -.PHONY: memcheck_btree -memcheck_btree: btree +.PHONY: memcheck +memcheck: $(OUT) valgrind $(VFLAGS) ./$^; |