Fix Makefile

I always use cmake, so had forgotten to pay attention to the
Makefile.
This commit is contained in:
Kawrakow
2024-08-09 17:29:32 +03:00
committed by Kawrakow
parent af2bb96de5
commit 5ed6d94cb5
2 changed files with 27 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ endif
# keep standard at C11 and C++11
MK_CPPFLAGS = -Iggml/include -Iggml/src -Iinclude -Isrc -Icommon
MK_CFLAGS = -std=c11 -fPIC
MK_CXXFLAGS = -std=c++11 -fPIC
MK_CXXFLAGS = -std=c++17 -fPIC
MK_NVCCFLAGS = -std=c++11
ifdef LLAMA_NO_CCACHE
@@ -560,6 +560,12 @@ ifdef GGML_NVPL
OBJ_GGML += ggml/src/ggml-blas.o
endif # GGML_NVPL
OBJ_GGML += ggml/src/iqk/iqk_quantize.o
ifndef GGML_NO_IQKMULMAT
MK_CPPFLAGS += -DGGML_USE_IQK_MULMAT
OBJ_GGML += ggml/src/iqk/iqk_mul_mat.o
endif
ifndef GGML_NO_LLAMAFILE
MK_CPPFLAGS += -DGGML_USE_LLAMAFILE
OBJ_GGML += ggml/src/llamafile/sgemm.o
@@ -1019,6 +1025,21 @@ ggml/src/ggml-blas.o: \
ggml/include/ggml-blas.h
$(CXX) $(CXXFLAGS) -c $< -o $@
ggml/src/iqk/iqk_quantize.o: \
ggml/src/iqk/iqk_quantize.cpp \
ggml/src/iqk/iqk_quantize.h \
ggml/src/ggml-quants.h ggml/src/ggml-common.h ggml/include/ggml.h ggml/src/ggml-impl.h
$(CXX) $(CXXFLAGS) -c $< -o $@
ifndef GGML_NO_IQKMULMAT
ggml/src/iqk/iqk_mul_mat.o: \
ggml/src/iqk/iqk_mul_mat.cpp \
ggml/src/iqk/iqk_mul_mat.h \
ggml/src/iqk/iqk_quantize.h \
ggml/src/ggml-quants.h ggml/src/ggml-common.h ggml/include/ggml.h ggml/src/ggml-impl.h
$(CXX) $(CXXFLAGS) -c $< -o $@
endif # GGML_NO_IQKMULMAT
ifndef GGML_NO_LLAMAFILE
ggml/src/llamafile/sgemm.o: \
ggml/src/llamafile/sgemm.cpp \