switch to making static library

This commit is contained in:
2025-05-08 20:02:59 +02:00
parent 6505add9f5
commit fd30b35d10

View File

@ -1,11 +1,10 @@
test: debug
gcc -ansi -L./build -o build/tests src/tests.c -lstrops
tests : libstrops.a
gcc -ansi -I . -L. -o tests tests.c -Wl,-Bstatic -lstrops -Wl,-Bdynamic
debug:
gcc -c -ansi -ggdb -o build/strops.o src/strops.c
gcc -shared -o build/libstrops.so build/strops.o
#release:
# gcc -ansi -O2 -pipe -fno-semantic-interposition -o build/hdb src/main.c src/db.c -lsqlite3
# strip build/hdb
libstrops.a : strops.o
ar cr libstrops.a strops.o
rm strops.o
strops.o : strops.c strops.h
gcc -c -ansi -ggdb -o strops.o strops.c
# gcc -c -ansi -O2 -pipe -o strops.o strops.c