aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/build_tree/ak_fs_build.sh
blob: 7be232249ed61f288a560a66eafd52278055bc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

echo "Building lib/akfs.so" && \
gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include ./src/aklog.c -o lib/libaklog.so && \
gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include ./src/akfs.c -o lib/libakfs.so && \
echo "Building tests/test_akfs" && \
gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs.c lib/libakfs.so lib/libaklog.so -o x_test_akfs && \
echo "Running test_akfs" && \
time ./x_test_akfs && \
rm ./x_test_akfs

# echo "Building tests/test_akfs_mkdir.c" && \
# gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs_mkdir.c lib/libakfs.so -o tests/test_akfs_mkdir && \
# echo "Running test_akfs_mkdir" && \
# time ./tests/test_akfs_mkdir && \
# rm ./tests/test_akfs_mkdir