diff options
| author | nasr <nsrddyn@gmail.com> | 2026-04-11 23:22:18 +0200 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2026-04-11 23:22:18 +0200 |
| commit | f430bfe8f71430032bec689bf0bbdc94ac409c22 (patch) | |
| tree | 5feabe21a86716e7aa7f8348163bb4440cde4c12 /Makefile | |
| parent | 2380741bea16d5e3d54195c266e335cb131ac642 (diff) | |
feature(main): enemy entitiy
Diffstat (limited to 'Makefile')
| -rwxr-xr-x | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..fc49e88 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | .PHONY: all clean | ||
| 2 | |||
| 3 | CC := gcc | ||
| 4 | CFLAGS := -I. -Wall -Wextra -Wno-unused-function -Wno-unused-variable -DCORE_UNITY | ||
| 5 | LDLIBS := -lX11 -lm | ||
| 6 | |||
| 7 | BUILD_DIR := build | ||
| 8 | TARGET := $(BUILD_DIR)/app | ||
| 9 | SOURCE := source/core/core.c | ||
| 10 | |||
| 11 | all: $(TARGET) | ||
| 12 | |||
| 13 | $(BUILD_DIR): | ||
| 14 | mkdir -p $(BUILD_DIR) | ||
| 15 | |||
| 16 | $(TARGET): $(BUILD_DIR) $(SOURCE) | ||
| 17 | $(CC) $(CFLAGS) $(SOURCE) $(LDLIBS) -o $(TARGET) | ||
| 18 | |||
| 19 | clean: | ||
| 20 | rm -rf $(BUILD_DIR) | ||
