git » sdk » commit 57204d7

Support static library

author Stephen Paul Weber
2026-03-10 15:51:52 UTC
committer Stephen Paul Weber
2026-03-10 15:51:52 UTC
parent e73bfc194ce14c569f2a5ade4cb5cb5077e082d8

Support static library

cpp/configure.simple +6 -0

diff --git a/cpp/configure.simple b/cpp/configure.simple
index 9aad884..bc684e8 100755
--- a/cpp/configure.simple
+++ b/cpp/configure.simple
@@ -9,3 +9,9 @@ echo >> Makefile
 printf "libborogove.so: " >> Makefile
 find src -name '*.cpp' -print0 | xargs -0 | sed -e's/\.cpp/\.o/g' >> Makefile
 echo '	$(CXX) -o $@ $^ $(LDFLAGS)' >> Makefile
+
+echo >> Makefile
+
+printf "libborogove.a: " >> Makefile
+find src -name '*.cpp' -print0 | xargs -0 | sed -e's/\.cpp/\.o/g' >> Makefile
+echo '	$(AR) rcs $@ $^' >> Makefile