aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-07-09 16:22:46 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-07-09 16:22:46 +0100
commit5c928bc8c77b890c17f03817b13e4119c500252c (patch)
treea4e2d5a4d73362ed3f3f8f5bd8a7d0cf4e2e6300 /Makefile
parent509c8930e8427ebf0902ba2d886ae638b129e285 (diff)
downloadalgorithms-5c928bc8c77b890c17f03817b13e4119c500252c.tar.gz
algorithms-5c928bc8c77b890c17f03817b13e4119c500252c.tar.bz2
algorithms-5c928bc8c77b890c17f03817b13e4119c500252c.zip
(Makefile)~modified to be slightly more agnostic
I'm going to add recipes for other language implementations of certain algorithms so as long as you have the correct background programs it just requires a make call to run the program.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8e6753..02896c9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,14 @@ CFLAGS=-pedantic -Wall -ggdb -fsanitize=address
VFLAGS=--show-leak-kinds=all --leak-check=full
OUT=
-$(OUT).out: $(OUT).cpp
+btree.out: btree.cpp
+ $(CC) $(CFLAGS) $^ -o $@
+
+list.out: list.cpp
$(CC) $(CFLAGS) $^ -o $@
.PHONY: run
-run: $(OUT).out
+run: $(OUT)
./$^
.PHONY: clean