#!/bin/sh iraylib="thirdparty/raylib_browser/include" include_opts="-I. -I $iraylib" lraylib="-L. -L thirdparty/raylib_browser/lib" minishell="--shell-file $HOME/Documents/Personal/programming/raylib/src/minshell.html" lib_opts="$lraylib -s USE_GLFW=3 $minishell -DPLATFORM_WEB --preload-file assets" src_dir="src" src_files="$src_dir/game.c" build_dir="build/web" build_path="$build_dir/game.html" emcc -Os -Wall ./thirdparty/raylib_browser/lib/libraylib.a $include_opts $src_files $lib_opts -o $build_path