build.sh 784 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. ## build script for JSRF-like engine for available platforms. By quantumde1.
  3. case "$1" in
  4. "dreamcast")
  5. ## lets try to source default kos toolchain placement
  6. source /opt/toolchains/dc/kos/environ.sh
  7. ## if working, go next, otherwise idk
  8. make -f makefiles/dreamcastMakefile
  9. mkdcdisc -e jsrf.elf -o JSRF.cdi -d assets
  10. ;;
  11. "desktop")
  12. ## going without anything, lmao
  13. gmake -f makefiles/desktopMakefile
  14. ;;
  15. "windows")
  16. ## going without anything, lmao
  17. make -f makefiles/windowsMakefile
  18. ;;
  19. "clean")
  20. make -f makefiles/desktopMakefile clean
  21. ;;
  22. *)
  23. echo "Unknown or empty second argument: $1
  24. available commands is $0 {dreamcast,desktop}"
  25. ;;
  26. esac