buildcsl.bat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @echo off
  2. rem buildcsl.bat --- Build CSL REDUCE under Windows.
  3. rem Author: Anthony C. Hearn.
  4. set lisp=csl
  5. cd %reduce%\lisp\csl\%MACHINE%
  6. if "%MACHINE%" == "win32vc" goto visualc
  7. if "%MACHINE%" == "cygwin32" goto cygnus
  8. rem Watcom case
  9. wmake csl.exe -f ..\cslsrc\Makefile.w32 reduce=%reduce%
  10. goto cont
  11. :visualc
  12. if not "%MSVCDir%" == "" goto visualc2
  13. set MSVCDir=c:\progra~1\DevStudio\VC
  14. echo *** Using %MSVCDir% as MSCVCDir value
  15. :visualc2
  16. call %MSVCDir%\bin\Vcvars32
  17. nmake csl.exe -f ..\cslsrc\Makefile.vc reduce=%reduce%
  18. goto cont
  19. :cygnus
  20. if not "%Cygroot%" == "" goto cygnus3
  21. set Cygroot=c:\cygwin
  22. echo *** Using %Cygroot% as Cygroot value
  23. :cygnus3
  24. set make_mode=unix
  25. set opath=%path%
  26. set path=%Cygroot%\bin;%path%
  27. make csl.exe -f ..\cslsrc\Makefile.cyg
  28. :cont
  29. rem copy csl.exe reduce.exe
  30. @echo on
  31. if exist ..\reduce.img goto cont2
  32. rem if exist ..\reduce.exe.img goto cont2
  33. start /wait /min csl -k8000 -v -z -i ..\reduce.img -o ..\reduce.img %reduce%\packages\support\dbuild.lsp -- %reduce%\log\csldbld.log
  34. :cont2
  35. %reduce%\util\remake
  36. :ret
  37. if not "%opath%" == "" set path=%opath%
  38. set opath=
  39. cd %reduce%