filenames.scm 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ; Copyright (c) 1993-2004 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. ; Generate filenames.make from *-packages.scm.
  3. ; Define DEFINE-STRUCTURE and friends
  4. (for-each load
  5. '("scheme/bcomp/module-language.scm"
  6. "scheme/alt/dummy-interface.scm"
  7. "scheme/alt/config.scm"
  8. "scheme/env/flatload.scm"))
  9. ; The following bogus structures are required in order to load
  10. ; scheme/more-interfaces.scm.
  11. (define ascii (structure (make-simple-interface 'ascii '())))
  12. (define bitwise (structure (make-simple-interface 'bitwise '())))
  13. (define enumerated (structure (make-simple-interface 'enumerated '())))
  14. (define tables (structure (make-simple-interface 'tables '())))
  15. (define cells (structure (make-simple-interface 'cells '())))
  16. ; The following loads are unnecessary; they only serve to suppress
  17. ; annoying "undefined" warnings for interfaces.
  18. (for-each load
  19. '("scheme/interfaces.scm"
  20. "scheme/vm/shared-interfaces.scm"
  21. "scheme/more-interfaces.scm"
  22. "scheme/sort/interfaces.scm"))
  23. (load-configuration "scheme/packages.scm")
  24. ; The following defines are unnecessary; they only serve to suppress
  25. ; annoying "undefined" warnings for some forward references.
  26. (define methods 0)
  27. (define tables 0)
  28. (flatload linker-structures)
  29. (define q-f (all-file-names link-config))
  30. ; (display "Initial structures") (newline)
  31. (flatload initial-structures)
  32. (define scheme (make-scheme environments evaluation))
  33. (define initial-system
  34. (structure (export)
  35. (open ;; Cf. initial.scm
  36. (make-initial-system scheme (make-mini-command scheme))
  37. module-system
  38. ensures-loaded
  39. for-reification))) ;foo...
  40. (define i-f (all-file-names initial-system))
  41. ; (display "Usual structures") (newline)
  42. (flatload usual-structures)
  43. (define u-f (all-file-names usual-features initial-system))
  44. (write-file-names "build/filenames.make"
  45. 'initial-files i-f
  46. 'usual-files u-f
  47. 'linker-files q-f)