summaryrefslogtreecommitdiff
path: root/build_and_test.sh
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-25 20:02:08 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-25 20:02:08 +0200
commit0d9781dafdfda9569a2373216ace013663f0d858 (patch)
tree14ebcf10eb0e32a02190ce4c80363979f9f7216d /build_and_test.sh
parente747b343c332907110dad26e15c20daf3d7d7125 (diff)
downloadsaw-0d9781dafdfda9569a2373216ace013663f0d858.zip
Sokol and nanovg setup
Diffstat (limited to 'build_and_test.sh')
-rw-r--r--build_and_test.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/build_and_test.sh b/build_and_test.sh
index 5a96b0a..46f8661 100644
--- a/build_and_test.sh
+++ b/build_and_test.sh
@@ -9,7 +9,7 @@ EXE_POSTFIX=
FLAGS=
FLAG_OBJ="-c -o "
FLAG_EXE="-o "
-LINK_FLAGS=
+LINK_FLAGS="-lm -lX11 -lXi -lXcursor -lGL"
if [ "$2" = "gcc" ]; then
COMPILE=gcc
@@ -110,10 +110,19 @@ fi
echo ""
+echo "Build saw"
+$COMPILE ${FLAGS} \
+ ${FLAG_EXE}"build/saw${EXE_POSTFIX}" \
+ "source/saw/_exe.c" \
+ ${LINK_FLAGS}
+if [ $? -ne 0 ]; then
+ exit 1
+fi
+
echo "Build saw_test_suite"
$COMPILE ${FLAGS} \
${FLAG_EXE}"build/saw_test_suite${EXE_POSTFIX}" \
- "source/tests/_static.c" \
+ "source/tests/_exe.c" \
${LINK_FLAGS}
if [ $? -ne 0 ]; then
exit 1