@@ -688,7 +688,7 @@ llama.o: llama.cpp unicode.h ggml.h ggml-alloc.h ggml-backend.h ggml-cuda.h ggml
688688 $(CXX ) $(CXXFLAGS ) -c $< -o $@
689689
690690COMMON_H_DEPS = common/common.h common/sampling.h common/log.h
691- COMMON_DEPS = common.o sampling.o grammar-parser.o build-info.o
691+ COMMON_DEPS = common.o sampling.o grammar-parser.o build-info.o json-schema-to-grammar.o
692692
693693common.o : common/common.cpp $(COMMON_H_DEPS )
694694 $(CXX ) $(CXXFLAGS ) -c $< -o $@
@@ -733,7 +733,7 @@ clean:
733733# Helper function that replaces .c, .cpp, and .cu file endings with .o:
734734GET_OBJ_FILE = $(patsubst % .c,% .o,$(patsubst % .cpp,% .o,$(patsubst % .cu,% .o,$(1 ) ) ) )
735735
736- main : examples/main/main.cpp ggml.o llama.o $(COMMON_DEPS ) console.o grammar-parser.o json-schema-to-grammar.o $(OBJS )
736+ main : examples/main/main.cpp ggml.o llama.o $(COMMON_DEPS ) console.o grammar-parser.o $(OBJS )
737737 $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
738738 $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
739739 @echo
@@ -756,7 +756,7 @@ batched: examples/batched/batched.cpp ggml.o llama.o $(C
756756 $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
757757 $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
758758
759- batched-bench : examples/batched-bench/batched-bench.cpp build-info.o ggml.o llama.o common.o $(OBJS )
759+ batched-bench : examples/batched-bench/batched-bench.cpp build-info.o ggml.o llama.o $( COMMON_DEPS ) $(OBJS )
760760 $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
761761 $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
762762
@@ -788,7 +788,7 @@ save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o $(C
788788 $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
789789 $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
790790
791- server : examples/server/server.cpp examples/server/utils.hpp examples/server/httplib.h common/json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp json-schema-to-grammar.o common/stb_image.h ggml.o llama.o $(COMMON_DEPS ) grammar-parser.o $(OBJS )
791+ server : examples/server/server.cpp examples/server/utils.hpp examples/server/httplib.h common/json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp common/stb_image.h ggml.o llama.o $(COMMON_DEPS ) grammar-parser.o $(OBJS )
792792 $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
793793 $(CXX ) $(CXXFLAGS ) $(filter-out % .h % .hpp $< ,$^ ) -Iexamples/server $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS ) $(LWINSOCK2 )
794794
0 commit comments