From cec45601ec1b5876af9b2e48d3d2bc1c7190c422 Mon Sep 17 00:00:00 2001 From: Antonia Date: Mon, 5 Dec 2022 10:38:49 +0100 Subject: [PATCH] Add makefile --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d78fa86 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +programs := $(patsubst %.c, bin/%, $(wildcard *.c)) +all: bin $(programs) +bin: + mkdir bin +bin/% : %.c + gcc -o $@ $< +clean : + rm $(programs)