From 148bd1115e328defead3205878039e8cc598712e Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 18 Feb 2026 17:17:33 +0100 Subject: Map editor --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 807a256..696534f 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,9 @@ LDFLAGS = -L$(LLAMA_DIR)/build/src -L$(LLAMA_DIR)/build/ggml/src \ PROMPT_TXT := $(wildcard prompts/*.txt) PROMPT_HEADERS := $(PROMPT_TXT:.txt=.h) +MAP_TXT := $(wildcard maps/*.txt) +MAP_HEADERS := $(MAP_TXT:.txt=.h) + help: .help build/llama.cpp: .assure # Build llama.cpp libraries @@ -27,10 +30,12 @@ build/context: context.c vectordb.c models.h # Build context binary for testing build/npc: build/prompts npc.c vectordb.c models.h # Build npc binary for testing $(CC) $(CFLAGS) npc.c vectordb.c -o npc $(LDFLAGS) -build/game: build/prompts game.c vectordb.c models.h # Build npc binary for testing +build/game: build/prompts build/maps game.c vectordb.c models.h # Build npc binary for testing $(CC) $(CFLAGS) game.c vectordb.c -o game $(LDFLAGS) -build/prompts: $(PROMPT_HEADERS) # Generate C style header +build/prompts: $(PROMPT_HEADERS) # Generate prompts in C style header + +build/maps: $(MAP_HEADERS) # Generate maps in C style header run/fetch-models: .assure # Fetch GGUF models -mkdir -p models @@ -47,3 +52,6 @@ run/clean: # Cleans up all the build artefacts prompts/%.h: prompts/%.txt .assure xxd -i $< > $@ + +maps/%.h: maps/%.txt .assure + xxd -i $< > $@ -- cgit v1.2.3