diff options
Diffstat (limited to 'build_desktop.sh')
-rwxr-xr-x | build_desktop.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build_desktop.sh b/build_desktop.sh new file mode 100755 index 0000000..d74c086 --- /dev/null +++ b/build_desktop.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +iraylib="thirdparty/raylib_desktop/include" +include_opts="-I $iraylib" + +lraylib="-L thirdparty/raylib_desktop/lib -lraylib" +lib_opts="$lraylib -lGL -lm -lpthread -ldl -lrt -lX11" + +src_dir="src" +src_files="$src_dir/game.c" +build_dir="build/desktop" +build_path="$build_dir/game.out" +cc -g -O0 $include_opts $src_files $lib_opts -o $build_path |