bore

Unnamed repository
Log | Files | Refs

commit bed094ca7c1be13351cfe65479311c4f7ba0c6c2
parent a65912394d6db979ab14ca7593bcda6ef45741c6
Author: aabacchus <ben@bvnf.space>
Date:   Thu, 16 Sep 2021 02:34:35 +0100

Makefile: add

Diffstat:
A.gitignore | 1+
AMakefile | 17+++++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +bin diff --git a/Makefile b/Makefile @@ -0,0 +1,17 @@ +.POSIX: + +BINS = +XCFLAGS = $(CFLAGS) -Wall -Wextra -Wpedantic -g + +.PHONY: clean + +all: bin $(BINS:%=bin/%) + +bin: + mkdir -p bin + +$(BINS:%=bin/%): $(BINS:=.c) + $(CC) $(XCFLAGS) -o $@ $(@:bin/%=%.c) + +clean: + rm -fr bin