From ff2f210d6662c7231547f04d04b5a9c8fb2cf706 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 1 Jun 2024 03:59:07 +0300 Subject: Introducing the first test and library implementations for the _ak_fs in C --- src/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 src/build.sh (limited to 'src/build.sh') diff --git a/src/build.sh b/src/build.sh new file mode 100755 index 0000000..cccc9e6 --- /dev/null +++ b/src/build.sh @@ -0,0 +1,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 -- cgit v1.2.3