aboutsummaryrefslogtreecommitdiff
path: root/src/build.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-01 03:59:07 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-01 03:59:07 +0300
commitff2f210d6662c7231547f04d04b5a9c8fb2cf706 (patch)
tree0c71177c69a2dca8eb0b2edf2e938b58c6a8cb7c /src/build.sh
parent6741ef52b72a164fcbc9ba4ebe4057e2de869a37 (diff)
downloadarching-kaos-tools-ff2f210d6662c7231547f04d04b5a9c8fb2cf706.tar.gz
arching-kaos-tools-ff2f210d6662c7231547f04d04b5a9c8fb2cf706.tar.bz2
arching-kaos-tools-ff2f210d6662c7231547f04d04b5a9c8fb2cf706.zip
Introducing the first test and library implementations for the _ak_fs in C
Diffstat (limited to 'src/build.sh')
-rwxr-xr-xsrc/build.sh12
1 files changed, 12 insertions, 0 deletions
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