diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..376f3b8 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | BIN = build/engine | ||
| 2 | SRC = source/engine/engine_entry.c | ||
| 3 | CC = clang | ||
| 4 | CFLAGS = -Wall -Wextra -Wfloat-equal -Wswitch-default -Wswitch-enum \ | ||
| 5 | -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-unused-function -g -Werror | ||
| 6 | |||
| 7 | $(BIN): $(SRC) | ||
| 8 | mkdir -p build | ||
| 9 | $(CC) $(CFLAGS) $< -o $@ | ||
| 10 | |||
| 11 | run: | ||
| 12 | $(BIN) | ||
| 13 | |||
| 14 | .PHONY: clean | ||
| 15 | clean: | ||
| 16 | rm -rf build | ||
