aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbhubbb <79117352+bhubbb@users.noreply.github.com>2023-04-08 02:11:58 +1000
committerGitHub <noreply@github.com>2023-04-07 19:11:58 +0300
commit698f7b5d6316a1f8453b3b32fd0d637d24952ffd (patch)
treec5dc0b56c407dada2755ea1af8078774df228be9 /Makefile
parentc1950c343109ab1fd15fc2ae1c83650c85d4eeef (diff)
make : add libllama.so target for llama-cpp-python (#797)
I was able to get llama-cpp-python working but only when I build libllama.so with make.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb14ffd..96c19de 100644
--- a/Makefile
+++ b/Makefile
@@ -166,6 +166,8 @@ perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o
$(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS)
+libllama.so: llama.o ggml.o
+ $(CXX) $(CXXFLAGS) -shared -fPIC -o libllama.so llama.o ggml.o $(LDFLAGS)
#
# Tests
#