From ddb2cfd8a74670382e61bad0b567f3d30e9aea70 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 25 Mar 2020 13:21:37 +1100 Subject: Initial commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7eac15c --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SRCS = $(wildcard src/*.c) +BINS = $(patsubst src/%.c,bin/%,$(SRCS)) + +CFLAGS = +CC = gcc $(CFLAGS) + +all: build + +build: $(BINS) + +.SECONDEXPANSION: +$(BINS): $$(patsubst bin/%,src/%.c,$$@) + @mkdir -pv bin + $(CC) -o $@ $(patsubst bin/%,src/%.c,$@) + +clean: + rm -f $(BINS) + rmdir bin -- cgit v1.3