diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-25 20:02:08 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-25 20:02:08 +0200 |
commit | 0d9781dafdfda9569a2373216ace013663f0d858 (patch) | |
tree | 14ebcf10eb0e32a02190ce4c80363979f9f7216d /build_and_test.sh | |
parent | e747b343c332907110dad26e15c20daf3d7d7125 (diff) | |
download | saw-0d9781dafdfda9569a2373216ace013663f0d858.zip |
Sokol and nanovg setup
Diffstat (limited to 'build_and_test.sh')
-rw-r--r-- | build_and_test.sh | 13 |
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 |