aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-06-25 07:38:39 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-06-25 07:38:39 +0100
commitdc090ace5f0f1f07dbd6be6b7aa7b7e35a7a7f9a (patch)
tree4c9b06028e51da087bb41c2aaee0b8ad0c1bea5a /Makefile
parent6d504da381d07115e7bc47b07276ba9105c541c0 (diff)
downloadalgorithms-dc090ace5f0f1f07dbd6be6b7aa7b7e35a7a7f9a.tar.gz
algorithms-dc090ace5f0f1f07dbd6be6b7aa7b7e35a7a7f9a.tar.bz2
algorithms-dc090ace5f0f1f07dbd6be6b7aa7b7e35a7a7f9a.zip
(*)~changed up makefile recipes, cleaned up README
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;