mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-01-26 17:20:01 +00:00
Fix Makefile
I always use cmake, so had forgotten to pay attention to the Makefile.
This commit is contained in:
23
Makefile
23
Makefile
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user