switch to marbles and create model compiler
[fishladder.git] / build.sh
index 598e7fe57473fad96f2c69f7d71b5c0431735c27..db2fa321ef9cb63b0e14a984e33d332bc7e73338 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -50,6 +50,10 @@ if [ "$do_build" = true ]; then
        echo "Build succeeded"
 fi
 
+# Build tools
+mkdir tools -p
+gcc -Wall -Wstrict-aliasing=3 $lib $flags mdlcomp.c gl/glad.c -o tools/mdlcomp $libs -Wl,-rpath=./ $defines
+
 if [[ "$OSTYPE" == "linux-gnu"* ]]; then
        # Directories to initialize
        mkdir build.linux/cfg -p
@@ -81,4 +85,4 @@ else
                ./$target
                cd ./../
        fi
-fi
\ No newline at end of file
+fi