From 79edc4909b5e56ceb934571d348a41867a01a00b Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 1 Dec 2021 13:56:19 -0500 Subject: [PATCH] make: Promote Makefile to root, add shared recipe Hopefully this will make 2/c even easier :) --- 1/c/Makefile | 5 ----- Makefile | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 1/c/Makefile create mode 100644 Makefile diff --git a/1/c/Makefile b/1/c/Makefile deleted file mode 100644 index a2a6c98..0000000 --- a/1/c/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -a: a.c - $(CC) -o $@ $< - -b: b.c - $(CC) -o $@ $< diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9aec0fe --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CFLAGS = -g -O2 -Wall -Wpedantic -Wextra + +TARGETS = \ + 1/c/a \ + 1/c/b \ + +.PHONY: all +all: $(TARGETS) + +.PHONY: clean +clean: + rm -f $(TARGETS) + +1/c/b: 1/c/b.c +1/c/a: 1/c/a.c + $(CC) $(CFLAGS) -o $@ $< -- libgit2 1.8.1