grgxcomp.sl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %==========================================================================%
  2. % GRG 3.2 Compilation [PSL] (C) 1988-96 Vadim V. Zhytnikov %
  3. %==========================================================================%
  4. % This file is distributed without any warranty. You may modify it but you %
  5. % are not allowed to remove author's name and/or distribute modified file. %
  6. %==========================================================================%
  7. % Set here amount of required free BPS or nil ...
  8. (setq free!-bps!-size 45000)
  9. (progn
  10. (terpri)
  11. (prin2 "Compiling GRG 3.2[x], wait few minutes.") (terpri)
  12. (prin2 "After several `*** Init code length is #'") (terpri)
  13. (prin2 "messages the compilation should be completed.") (terpri)
  14. (prin2 "Watch possible error messages preceded by `*****' ...") (terpri)
  15. (terpri)
  16. (wrs (open "grgxcomp.log" 'output))
  17. )
  18. (de compile!-file!> (bin src)
  19. (prog (wcc)
  20. (setq wcc (wrs nil))
  21. (prin2 "Compiling `") (prin2 bin) (prin2 "' ...") (terpri)
  22. (wrs wcc)
  23. (terpri) (prin2 "### Compiling `") (prin2 bin) (prin2 "' ...") (terpri)
  24. (setq !*comp t)
  25. (faslout bin)
  26. (dskin src)
  27. (faslend)
  28. (setq !*comp nil)
  29. ))
  30. % Loading compiler ...
  31. (load compiler)
  32. % Do we need symget.dat ?
  33. % (cond
  34. % ((and (getd 'filep) (filep "$reduce/util/symget.dat"))
  35. % (dskin "$reduce/util/symget.dat") ))
  36. % Enlarging BPS if necessary ...
  37. (cond
  38. ((and free!-bps!-size (getd 'set!-bps!-size) (getd 'free!-bps)
  39. (lessp (free!-bps) free!-bps!-size))
  40. (set!-bps!-size free!-bps!-size)))
  41. (dskin "xdecl.sl" )
  42. (compile!-file!> "grg" "grg.sl" )
  43. (compile!-file!> "grgdecl" "xdecl.sl" )
  44. (compile!-file!> "grggeom" "xgeom.sl" )
  45. (compile!-file!> "grggrav" "xgrav.sl" )
  46. (compile!-file!> "grginit" "xinit.sl" )
  47. (compile!-file!> "grgclass" "xclass.sl" )
  48. (compile!-file!> "grgcomm" "xcomm.sl" )
  49. (compile!-file!> "grgcoper" "xcoper.sl" )
  50. (compile!-file!> "grgmain" "xmain.sl" )
  51. (compile!-file!> "grgmater" "xmater.sl" )
  52. (compile!-file!> "grgprin" "xprin.sl" )
  53. (compile!-file!> "grgproc" "xproc.sl" )
  54. (compile!-file!> "grgtrans" "xtrans.sl" )
  55. (compile!-file!> "grgcfg" "grgcfg.sl" )
  56. (progn
  57. (terpri) (prin2 "### All done.") (terpri)
  58. (wrs nil)
  59. (terpri)
  60. (prin2 "GRG has been compiled.") (terpri)
  61. (prin2 "Move all created grg*.b files in the $reduce/fasl") (terpri)
  62. (prin2 "directory or keep them in your working directory.") (terpri)
  63. )
  64. (bye)
  65. %==========================================================================%