aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/build_tree/ak_settings_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'c_implementation/build_tree/ak_settings_build.sh')
-rwxr-xr-xc_implementation/build_tree/ak_settings_build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/c_implementation/build_tree/ak_settings_build.sh b/c_implementation/build_tree/ak_settings_build.sh
new file mode 100755
index 0000000..f5137f9
--- /dev/null
+++ b/c_implementation/build_tree/ak_settings_build.sh
@@ -0,0 +1,11 @@
+echo "Building lib/aksettings.so" && \
+gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include src/aksettings.c -o lib/libaksettings.so && \
+echo "Building tests/test_aksettings" && \
+gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings.c lib/libaklog.so lib/libaksettings.so -o tests/test_aksettings && \
+echo "Running test_aksettings" && \
+time ./tests/test_aksettings && \
+rm ./tests/test_aksettings
+gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings_read.c lib/libaklog.so lib/libaksettings.so -o tests/test_aksettings_read && \
+echo "Running test_aksettings_read" && \
+time ./tests/test_aksettings_read && \
+rm ./tests/test_aksettings_read