compile.bat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @echo off
  2. if exist spasm.exe (
  3. echo "Starting Compile..."
  4. ) else (
  5. echo "Opening readme..."
  6. start "" https://github.com/Zeda/Grammer2/blob/master/Readme.md
  7. exit
  8. )
  9. cd src
  10. rem Generates the jumptable and grammer2.5.inc file together.
  11. echo "Generating grammer2.5.inc"
  12. python ..\tools\jt.py jmptable.z80 grammer2.5.inc
  13. copy /Y grammer2.5.inc ..\docs\grammer2.5.inc
  14. :Grammer
  15. set /P c=Compile Grammer?(Y/N)
  16. if /I "%c%" EQU "Y" (
  17. echo "Assembling App"
  18. ..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
  19. )
  20. if /I "%c%" EQU "N" goto :grampkg
  21. goto :Grammer
  22. :grampkg
  23. set /P c=Compile Default Package?(Y/N)
  24. if /I "%c%" EQU "Y" (
  25. echo "Assembling Default Package"
  26. ..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
  27. )
  28. if /I "%c%" EQU "N" goto :exppkg
  29. goto :grampkg
  30. rem Check for an experimental package
  31. if exist experimental\experimental.z80 (
  32. :exppkg
  33. set /P c=Compile Experimental Package?(Y/N)
  34. if /I "%c%" EQU "Y" (
  35. echo "Assembling Experimental Package"
  36. ..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
  37. )
  38. if /I "%c%" EQU "N" goto :proglaunch
  39. goto :exppkg
  40. )
  41. rem Check for the program launcher
  42. if exist launch.z80 (
  43. :proglaunch
  44. set /P c=Compile Program Launcher?(Y/N)
  45. if /I "%c%" EQU "Y" (
  46. echo "Assembling Program Launcher"
  47. ..\spasm.exe launch.z80 ..\bin\g250.8xp
  48. )
  49. if /I "%c%" EQU "N" goto :exit
  50. goto :proglaunch
  51. )
  52. :exit
  53. cd..