diff --git a/Makefile b/Makefile index c282eb6f3..05d91c480 100644 --- a/Makefile +++ b/Makefile @@ -62,9 +62,9 @@ endif CUBLASLD_FLAGS = CUBLAS_OBJS = -OBJS_FULL += ggml-alloc.o ggml-quants.o unicode.o unicode-data.o sgemm.o common.o grammar-parser.o -OBJS_SIMPLE += ggml-alloc.o ggml-quants_noavx2.o unicode.o unicode-data.o sgemm_noavx2.o common.o grammar-parser.o -OBJS_FAILSAFE += ggml-alloc.o ggml-quants_failsafe.o unicode.o unicode-data.o sgemm_failsafe.o common.o grammar-parser.o +OBJS_FULL += ggml-alloc.o ggml-quants.o unicode.o unicode-data.o sgemm.o common.o sampling.o grammar-parser.o +OBJS_SIMPLE += ggml-alloc.o ggml-quants_noavx2.o unicode.o unicode-data.o sgemm_noavx2.o common.o sampling.o grammar-parser.o +OBJS_FAILSAFE += ggml-alloc.o ggml-quants_failsafe.o unicode.o unicode-data.o sgemm_failsafe.o common.o sampling.o grammar-parser.o #lets try enabling everything CFLAGS += -pthread -s -Wno-deprecated -Wno-deprecated-declarations @@ -497,6 +497,8 @@ llama.o: llama.cpp ggml.h ggml-alloc.h ggml-backend.h ggml-cuda.h ggml-metal.h l $(CXX) $(CXXFLAGS) -c $< -o $@ common.o: common/common.cpp common/common.h common/log.h $(CXX) $(CXXFLAGS) -c $< -o $@ +sampling.o: common/sampling.cpp common/common.h common/sampling.h common/log.h + $(CXX) $(CXXFLAGS) -c $< -o $@ console.o: common/console.cpp common/console.h $(CXX) $(CXXFLAGS) -c $< -o $@ grammar-parser.o: common/grammar-parser.cpp common/grammar-parser.h