compile.bat 993 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. @echo off
  2. if exist spasm.exe (
  3. echo "Starting Compile..."
  4. md bin
  5. ) else (
  6. echo "Opening readme..."
  7. start "" https://github.com/Zeda/Grammer2/blob/master/Readme.md
  8. exit
  9. )
  10. cd src
  11. rem Generates the jumptable and grammer2.5.inc file together.
  12. echo "Generating grammer2.5.inc"
  13. python ..\tools\jt.py jmptable.z80 grammer2.5.inc
  14. copy /Y grammer2.5.inc ..\docs\grammer2.5.inc
  15. echo "Assembling App"
  16. ..\spasm.exe grammer.z80 ..\bin\grammer.8xk -I ..\z80float\single
  17. rem If the second command line argument is -ca then compile everything else.
  18. if "%1"=="a" (
  19. echo "Assembling Default Package"
  20. ..\spasm.exe grampkg.z80 ..\bin\grampkg.8xv
  21. rem Install experimental package
  22. echo "Assembling Experimental Package"
  23. ..\spasm.exe experimental\experimental.z80 ..\bin\EXPRMNTL.8xv -I single
  24. rem Install program launcher
  25. echo "Assembling Program Launcher"
  26. ..\spasm.exe launch.z80 ..\bin\g250.8xp
  27. )
  28. cd..