switch to making static library
This commit is contained in:
17
Makefile
17
Makefile
@ -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
|
||||
|
Reference in New Issue
Block a user