From b6c4a54189dffb4e1716b95602b616b6c99a2f32 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 29 May 2021 18:52:04 -0400 Subject: [PATCH] meta: add GNUmakefile --- .gitignore | 1 - GNUmakefile | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 GNUmakefile diff --git a/.gitignore b/.gitignore index b307a43..dd6e19a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -*cache* bin a.out diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..78858e6 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,15 @@ +SRCS = $(wildcard *.c) +OUTS = $(patsubst %.c,%,$(SRCS)) + +all: setup $(OUTS) + +%: %.c + $(CC) $(CFLAGS) -o bin/$@ $< + +setup: + mkdir -p bin + +clean: + rm -rf bin + +.PHONY: clean -- 2.39.2