diff options
| author | Jake Mannens <jakem_5@hotmail.com> | 2020-03-25 13:21:37 +1100 |
|---|---|---|
| committer | Jake Mannens <jakem_5@hotmail.com> | 2020-03-25 13:21:37 +1100 |
| commit | ddb2cfd8a74670382e61bad0b567f3d30e9aea70 (patch) | |
| tree | f3208f7ff10a187442c26a48a0d68c5b134ef7db /Makefile | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
