CC=clang++ CFLAGS=-pedantic -Wall -ggdb -fsanitize=address VFLAGS=--show-leak-kinds=all --leak-check=full OUT= btree.out: btree.cpp $(CC) $(CFLAGS) $^ -o $@ list.out: list.cpp $(CC) $(CFLAGS) $^ -o $@ bsearch.out: bsearch.cpp $(CC) $(CFLAGS) $^ -o $@ .PHONY: run run: $(OUT) ./$^ .PHONY: clean clean: rm -v *.out;