aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-06-25 07:33:06 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-06-25 07:33:06 +0100
commit6d504da381d07115e7bc47b07276ba9105c541c0 (patch)
tree167016d5bca93359f92d91181463954b1e02572c /Makefile
parentb58ee52a8157d971440d6c92a194a92c2d75f83b (diff)
downloadalgorithms-6d504da381d07115e7bc47b07276ba9105c541c0.tar.gz
algorithms-6d504da381d07115e7bc47b07276ba9105c541c0.tar.bz2
algorithms-6d504da381d07115e7bc47b07276ba9105c541c0.zip
(*)~reworking this project
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7112d2f..5a4e524 100644
--- a/Makefile
+++ b/Makefile
@@ -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) ./$^;