diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 17:17:33 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 17:17:33 +0100 |
| commit | 148bd1115e328defead3205878039e8cc598712e (patch) | |
| tree | ea7bde7487d080e0959cc0a26eb9c156c1db4a57 /Makefile | |
| parent | 6e4ab703d370e94ed0575ee986fa6235de7009ea (diff) | |
| download | llmnpc-148bd1115e328defead3205878039e8cc598712e.tar.gz | |
Map editor
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 $< > $@ |
