(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.
This commit is contained in:
2023-07-09 16:22:46 +01:00
parent 509c8930e8
commit 5c928bc8c7

View File

@@ -3,11 +3,14 @@ CFLAGS=-pedantic -Wall -ggdb -fsanitize=address
VFLAGS=--show-leak-kinds=all --leak-check=full VFLAGS=--show-leak-kinds=all --leak-check=full
OUT= OUT=
$(OUT).out: $(OUT).cpp btree.out: btree.cpp
$(CC) $(CFLAGS) $^ -o $@
list.out: list.cpp
$(CC) $(CFLAGS) $^ -o $@ $(CC) $(CFLAGS) $^ -o $@
.PHONY: run .PHONY: run
run: $(OUT).out run: $(OUT)
./$^ ./$^
.PHONY: clean .PHONY: clean