fix: modify the Makefile to support added code files

This commit is contained in:
DandinPower
2025-08-23 11:40:14 +00:00
parent 2a10bca030
commit 5f40a34e67
+7
View File
@@ -955,6 +955,7 @@ OBJ_LLAMA = \
src/unicode.o \
src/unicode-data.o \
src/network-utils.o \
src/quantization.o \
OBJ_COMMON = \
common/profiler.o \
@@ -1158,6 +1159,7 @@ src/llama.o: \
src/llama-sampling.h \
src/unicode.h \
src/network-utils.h \
src/quantization.h \
include/llama.h \
ggml/include/ggml-cuda.h \
ggml/include/ggml-metal.h \
@@ -1173,6 +1175,11 @@ src/llama-vocab.o: \
include/llama.h
$(CXX) $(CXXFLAGS) -c $< -o $@
src/quantization.o: \
src/quantization.cpp \
src/quantization.h
$(CXX) $(CXXFLAGS) -c $< -o $@
src/llama-grammar.o: \
src/llama-grammar.cpp \
src/llama-grammar.h \