commit 79edc4909b5e56ceb934571d348a41867a01a00b (patch) parent 0cce5758d01cbd3a84946152e0741a94cf89e0aa Author: Alex Karle <alex@alexkarle.com> Date: Wed, 1 Dec 2021 13:56:19 -0500 make: Promote Makefile to root, add shared recipe Hopefully this will make 2/c even easier :) Diffstat:
D | 1/c/Makefile | | | 5 | ----- |
A | Makefile | | | 16 | ++++++++++++++++ |
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/1/c/Makefile b/1/c/Makefile @@ -1,5 +0,0 @@ -a: a.c - $(CC) -o $@ $< - -b: b.c - $(CC) -o $@ $< diff --git a/Makefile 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 $@ $<