Source

libamos / compile.sh

Full commit
#!/bin/sh

echo "Compiling static library..."
gcc -c membank.c -o membank.o
gcc -c strings.c -o strings.o -lm
gcc -c math.c -o math.o -lm
#gcc -c file.c -o file.o
ar rcs libamos.a membank.o strings.o math.o
ranlib libamos.a
echo "Building shared library..."
#gcc -c -fPIC libamos.c -o libamos.o
gcc -shared -Wl,-soname,libamos.so.1 -o libamos.so.1 membank.o strings.o math.o -lm
./compile-example.sh