aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/build_tree/ak_utils_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'c_implementation/build_tree/ak_utils_build.sh')
-rwxr-xr-xc_implementation/build_tree/ak_utils_build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/c_implementation/build_tree/ak_utils_build.sh b/c_implementation/build_tree/ak_utils_build.sh
new file mode 100755
index 0000000..178519a
--- /dev/null
+++ b/c_implementation/build_tree/ak_utils_build.sh
@@ -0,0 +1,7 @@
+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