diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 10:05:54 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 10:05:54 +0100 |
| commit | 2c799d944d1f2e4daa2a67d8fb435ddfbfe3946c (patch) | |
| tree | a7356f01a072f0a684398baa8cee848bb47c653f | |
| parent | 6a474e0bbb3ef0cb3221b865b4e5187eda2e35f6 (diff) | |
adds platform flag and unifies shader
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | assets/text.glsl (renamed from assets/text.frag) | 0 | ||||
| -rw-r--r-- | assets/text.vert | 0 |
3 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,6 @@ +PLATFORM = linux +PLATFORMS = linux + WORK_DIR = . SRC_DIR = $(WORK_DIR)/src @@ -7,6 +10,10 @@ CSH_FLAGS = \ -MMD -MP \ -I$(SRC_DIR) +ifeq ($(filter $(PLATFORM),$(PLATFORMS)),) +$(error "Unknown platform: $(PLATFORM)") +endif + CC = clang CC_STD = -std=c11 CC_FLAGS = $(CC_STD) $(CSH_FLAGS) @@ -54,6 +61,8 @@ CGLM_DIR = $(WORK_DIR)/cglm CGLM_INCLUDE = $(CGLM_DIR)/include SOKOL_DIR = $(WORK_DIR)/sokol +SOKOL_BIN = $(WORK_DIR)/sokol_bin/bin +SOKOL_SHDC = $(SOKOL_BIN)/$(PLATFORM)/sokol-shdc CSH_FLAGS += \ -I$(MI_INCLUDE) \ diff --git a/assets/text.frag b/assets/text.glsl index e69de29..e69de29 100644 --- a/assets/text.frag +++ b/assets/text.glsl diff --git a/assets/text.vert b/assets/text.vert deleted file mode 100644 index e69de29..0000000 --- a/assets/text.vert +++ /dev/null |
