aboutsummaryrefslogtreecommitdiff
path: root/src/build.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-07 04:01:14 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-07 04:01:14 +0200
commit290a499b3ac03cd241255880e3176d2656741ca1 (patch)
tree8618021d01fbab8106c429cd1be838161fbb76c2 /src/build.sh
parentfbf8c1d3cf60bf620b1535a0af523ff23ae3a200 (diff)
downloadarching-kaos-tools-290a499b3ac03cd241255880e3176d2656741ca1.tar.gz
arching-kaos-tools-290a499b3ac03cd241255880e3176d2656741ca1.tar.bz2
arching-kaos-tools-290a499b3ac03cd241255880e3176d2656741ca1.zip
Updating build system
Diffstat (limited to 'src/build.sh')
-rwxr-xr-xsrc/build.sh25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/build.sh b/src/build.sh
index 3ad716e..b09c0de 100755
--- a/src/build.sh
+++ b/src/build.sh
@@ -4,24 +4,7 @@ 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
-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
-
-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
+find build_tree -type f | while read build_script
+do
+ bash ${build_script}
+done