From 290a499b3ac03cd241255880e3176d2656741ca1 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 7 Dec 2024 04:01:14 +0200 Subject: Updating build system --- src/build_tree/ak_fs_build.sh | 15 +++++++++++++++ src/build_tree/ak_log_build.sh | 9 +++++++++ src/build_tree/ak_settings_build.sh | 2 ++ 3 files changed, 26 insertions(+) create mode 100755 src/build_tree/ak_fs_build.sh create mode 100755 src/build_tree/ak_log_build.sh create mode 100755 src/build_tree/ak_settings_build.sh (limited to 'src/build_tree') diff --git a/src/build_tree/ak_fs_build.sh b/src/build_tree/ak_fs_build.sh new file mode 100755 index 0000000..91ad759 --- /dev/null +++ b/src/build_tree/ak_fs_build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +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 +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 && \ +echo "Running test_akfs_mkdir" && \ +time ./tests/test_akfs_mkdir +rm ./tests/test_akfs_mkdir diff --git a/src/build_tree/ak_log_build.sh b/src/build_tree/ak_log_build.sh new file mode 100755 index 0000000..bbc8db6 --- /dev/null +++ b/src/build_tree/ak_log_build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "Building lib/aklog.so" && \ +gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aklog.c -o lib/aklog.so && \ +echo "Building tests/test_aklog" && \ +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aklog.c lib/aklog.so -o tests/test_aklog && \ +echo "Running test_aklog" && \ +time ./tests/test_aklog +rm ./tests/test_aklog diff --git a/src/build_tree/ak_settings_build.sh b/src/build_tree/ak_settings_build.sh new file mode 100755 index 0000000..5edcd19 --- /dev/null +++ b/src/build_tree/ak_settings_build.sh @@ -0,0 +1,2 @@ +echo "Building lib/aksettings.so" && gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aksettings.c -o lib/aksettings.so && echo "Building tests/test_aksettings" && gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings.c lib/aksettings.so -o tests/test_aksettings && echo "Running test_aksettings" && time ./tests/test_aksettings +rm ./tests/test_aksettings -- cgit v1.2.3