#!/usr/bin/env bash # Currently not cross compiling for windows and darwin set -euo pipefail if [[ -v 1 ]]; then if [ "$1" = "DEBUG" ]; then MFLAGS="RAYLIB_BUILD_MODE=DEBUG" CFLAGS="-g" elif [ "$1" = "RELEASE" ]; then MFLAGS="RAYLIB_BUILD_MODE=RELEASE" CFLAGS="-Os -ffunction-sections -fdata-sections" else echo "Usage: