From 2c799d944d1f2e4daa2a67d8fb435ddfbfe3946c Mon Sep 17 00:00:00 2001 From: Fabrice Date: Thu, 12 Feb 2026 10:05:54 +0100 Subject: adds platform flag and unifies shader --- Makefile | 9 +++++++++ assets/text.frag | 0 assets/text.glsl | 0 assets/text.vert | 0 4 files changed, 9 insertions(+) delete mode 100644 assets/text.frag create mode 100644 assets/text.glsl delete mode 100644 assets/text.vert diff --git a/Makefile b/Makefile index c11ba4d..8f78c56 100644 --- a/Makefile +++ b/Makefile @@ -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.frag deleted file mode 100644 index e69de29..0000000 diff --git a/assets/text.glsl b/assets/text.glsl new file mode 100644 index 0000000..e69de29 diff --git a/assets/text.vert b/assets/text.vert deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3