aboutsummaryrefslogtreecommitdiff
path: root/src/build_tree/ak_log_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_tree/ak_log_build.sh')
-rwxr-xr-xsrc/build_tree/ak_log_build.sh9
1 files changed, 9 insertions, 0 deletions
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