diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 21:04:37 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 21:04:37 +0300 |
commit | fa304767b5746d4ee7f4bef1cfda0570d03066cc (patch) | |
tree | b75901167d74bb2f2361eea9e2627166b3895b49 /c_implementation/build_tree/ak_utils_build.sh | |
parent | b9f80a2b37edf9682f189b406542b3f7a93b24a3 (diff) | |
download | arching-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_utils_build.sh')
-rwxr-xr-x | c_implementation/build_tree/ak_utils_build.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/c_implementation/build_tree/ak_utils_build.sh b/c_implementation/build_tree/ak_utils_build.sh index 4300307..178519a 100755 --- a/c_implementation/build_tree/ak_utils_build.sh +++ b/c_implementation/build_tree/ak_utils_build.sh @@ -1,2 +1,7 @@ -echo "Building lib/akutils.so" && gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akutils.c -o lib/akutils.so && echo "Building tests/test_akutils" && gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akutils.c lib/akutils.so -o tests/test_akutils && echo "Running test_akutils" && time ./tests/test_akutils -rm ./tests/test_akutils +echo "Building lib/akutils.so" && \ + gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include src/akutils.c -o lib/libakutils.so && \ + echo "Building tests/test_akutils" && \ + gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akutils.c lib/libakutils.so -o tests/test_akutils && \ + echo "Running test_akutils" && \ + time ./tests/test_akutils && \ + rm ./tests/test_akutils |