chore(build): add static library output and privilege-safe install

- debug and release targets now produce both shared and static libs
- obj dirs split into shared/ and static/ to keep fPIC objects isolated
- install no longer depends on release, guards with existence check instead
- build.sh handles privilege escalation for install/uninstall via doas or
  sudo, falling back gracefully if already root
- uninstall cleans up static lib alongside shared
This commit is contained in:
anth64 committed 2026-03-12 22:35:03 +01:00
1 parent 0cd50a5781
commit 6fbd03f863
4 files changed
+124 -33

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ OBJ_DIR = obj
BIN_DIR = bin
LIB_NAME = stk
STATIC_LIB = lib$(LIB_NAME).a
SRCS = src/module.c \
src/platform.c \