From 5c928bc8c77b890c17f03817b13e4119c500252c Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 9 Jul 2023 16:22:46 +0100 Subject: (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. --- Makefile | 7 +++++-- 1 file 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 -- cgit v1.2.3-13-gbd6f