tuxanci2
Top down shooter
Log | Files | Refs | Submodules | README | LICENSE
commit aaf1a0c510a1f594bd419929d2a28fa3be91fa9f
parent c8c336257409b8faf2e59ba83f50a5a1e7ad3d55
Author: Connor Thomson <connor@gnufault.org>
Date:   Fri,  6 Nov 2026 20:04:34 -0800

Add EMBED_PLATFORMS

Diffstat:
MMakefile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -2,6 +2,7 @@ BUILD_DIR := $(CURDIR)/build ENGINE := ../../engine PLATFORM_FILE := $(BUILD_DIR)/platform PLATFORMS := $(notdir $(wildcard runtimes/*)) +EMBED_PLATFORMS := xbox n64 dreamcast ps1 saturn .DEFAULT_GOAL := help @@ -22,7 +23,7 @@ $(PLATFORMS): mkdir -p "$(BUILD_DIR)" printf '%s\n' '$@' > "$(PLATFORM_FILE)" $(MAKE) -C game BUILD="$(BUILD_DIR)/game" - $(MAKE) -C runtimes/$@ ENGINE="$(ENGINE)" BUILD_DIR="$(BUILD_DIR)" + $(MAKE) -C runtimes/$@ ENGINE="$(ENGINE)" BUILD_DIR="$(BUILD_DIR)" EMBED_GAME="$(if $(filter undefined,$(origin EMBED_GAME)),$(if $(filter $@,$(EMBED_PLATFORMS)),1,0),$(EMBED_GAME))" clean: rm -rf "$(BUILD_DIR)"