From dc090ace5f0f1f07dbd6be6b7aa7b7e35a7a7f9a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 25 Jun 2023 07:38:39 +0100 Subject: (*)~changed up makefile recipes, cleaned up README --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') 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; -- cgit v1.2.3-13-gbd6f