blob: cccc9e6da593c72dafd216b700af947744346439 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
if [ ! -d $PWD/lib ]
then
mkdir $PWD/lib
fi
echo "Building lib/akfs.so" && \
gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akfs.c -o lib/akfs.so && \
echo "Building tests/test_akfs" && \
gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs.c lib/akfs.so -o tests/test_akfs && \
echo "Running test_akfs" && \
time ./tests/test_akfs
|