diff --git a/Makefile b/Makefile index e1da533..4bece23 100644 --- a/Makefile +++ b/Makefile @@ -65,8 +65,18 @@ APP_SOURCES := $(wildcard source/*.cpp) \ # Excluir archivos antiguos si existen APP_SOURCES := $(filter-out source/main_old.cpp, $(APP_SOURCES)) -# Includes -INCLUDES := -Isource -Isource/external -Ibuild/generated_shaders +# Includes: usar shaders pre-compilados si glslc no está disponible +ifeq ($(OS),Windows_NT) + GLSLC := $(shell where glslc 2>NUL) +else + GLSLC := $(shell command -v glslc 2>/dev/null) +endif +ifeq ($(GLSLC),) + SHADER_INCLUDE := -Ishaders/precompiled +else + SHADER_INCLUDE := -Ibuild/generated_shaders +endif +INCLUDES := -Isource -Isource/external $(SHADER_INCLUDE) # Variables según el sistema operativo CXXFLAGS_BASE := -std=c++20 -Wall