summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 15:14:13 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-02-18 15:14:13 +0100
commite0de42af0b2c51ed9607a477cbdb556f44bac4f7 (patch)
treebc1832b01354a96d13dd3f8b46d60f904e28889a /Makefile
parent3145e2d2f565c5da599dd50e9c70b9e9ff3d5965 (diff)
downloadllmnpc-e0de42af0b2c51ed9607a477cbdb556f44bac4f7.tar.gz
Update to VectorDB
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0d27bd6..807a256 100644
--- a/Makefile
+++ b/Makefile
@@ -15,18 +15,21 @@ PROMPT_HEADERS := $(PROMPT_TXT:.txt=.h)
help: .help
-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/context: context.c vectordb.c models.h # Build context binary for testing
- $(CC) $(CFLAGS) context.c vectordb.c -o context $(LDFLAGS)
-
build/llama.cpp: .assure # Build llama.cpp libraries
mkdir $(LLAMA_DIR)/build && \
cd $(LLAMA_DIR)/build && \
cmake ../ -DBUILD_SHARED_LIBS=OFF && \
make -j8
+build/context: context.c vectordb.c models.h # Build context binary for testing
+ $(CC) $(CFLAGS) context.c vectordb.c -o context $(LDFLAGS)
+
+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
+ $(CC) $(CFLAGS) game.c vectordb.c -o game $(LDFLAGS)
+
build/prompts: $(PROMPT_HEADERS) # Generate C style header
run/fetch-models: .assure # Fetch GGUF models