diff options
| author | nasr <nsrddyn@gmail.com> | 2026-03-02 22:43:16 +0000 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-03-02 22:43:16 +0000 |
| commit | 56ebfa3f4b0d7a80090b344b294252d2be152bb0 (patch) | |
| tree | 9d12900a2870dde05e7ce6581104dc2b3070dbe1 /Makefile | |
| parent | 9053e4a0a20f0c0338aa4c5d9f9c0520184bcad7 (diff) | |
feature(main): base library impelmentation
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 | ||
