]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
add static library make target
author0/0 <redacted>
Mon, 10 Oct 2022 01:16:42 +0000 (19:16 -0600)
committer0/0 <redacted>
Mon, 10 Oct 2022 01:16:42 +0000 (19:16 -0600)
Makefile

index cb943a71251aaef201337a9e127968a0a366529e..35766e52fbbfe39f41bbf9e49d41a442e73c66cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,8 +60,11 @@ ggml.o: ggml.c ggml.h
 whisper.o: whisper.cpp whisper.h
        $(CXX) $(CXXFLAGS) -c whisper.cpp
 
+libwhisper.a: ggml.o whisper.o
+       ar rcs libwhisper.a ggml.o whisper.o
+
 clean:
-       rm -f *.o main
+       rm -f *.o main libwhisper.a
 
 #
 # Examples