aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/build_tree/ak_fs_build.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-02 21:04:37 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-02 21:04:37 +0300
commitfa304767b5746d4ee7f4bef1cfda0570d03066cc (patch)
treeb75901167d74bb2f2361eea9e2627166b3895b49 /c_implementation/build_tree/ak_fs_build.sh
parentb9f80a2b37edf9682f189b406542b3f7a93b24a3 (diff)
downloadarching-kaos-tools-fa304767b5746d4ee7f4bef1cfda0570d03066cc.tar.gz
arching-kaos-tools-fa304767b5746d4ee7f4bef1cfda0570d03066cc.tar.bz2
arching-kaos-tools-fa304767b5746d4ee7f4bef1cfda0570d03066cc.zip
[C] Necessary refactoring
Diffstat (limited to 'c_implementation/build_tree/ak_fs_build.sh')
-rwxr-xr-xc_implementation/build_tree/ak_fs_build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/c_implementation/build_tree/ak_fs_build.sh b/c_implementation/build_tree/ak_fs_build.sh
index a18b824..11b4fde 100755
--- a/c_implementation/build_tree/ak_fs_build.sh
+++ b/c_implementation/build_tree/ak_fs_build.sh
@@ -1,15 +1,15 @@
#!/usr/bin/env bash
echo "Building lib/akfs.so" && \
-gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akfs.c -o lib/akfs.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/akfs.so -o tests/test_akfs && \
+gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs.c lib/libakfs.so -o tests/test_akfs && \
echo "Running test_akfs" && \
time ./tests/test_akfs && \
rm ./tests/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/akfs.so -o tests/test_akfs_mkdir && \
+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