pmfile 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. -- $Source$
  2. -- $State$
  3. -- $Revision$
  4. local d = ROOTDIR.."plat/cpm/"
  5. include (d.."libsys/pmfile")
  6. local bootsector = ackfile {
  7. file (d.."boot.s"),
  8. install = pm.install("%BINDIR%lib/cpm/boot.o"),
  9. }
  10. local descr = group {
  11. install = pm.install(d.."descr", "%BINDIR%%PLATIND%/%PLATFORM%/descr")
  12. }
  13. local headers = group {
  14. install = {
  15. pm.install(d.."include/ack/config.h", "%BINDIR%%PLATIND%/%PLATFORM%/include/ack/config.h"),
  16. pm.install(d.."include/unistd.h", "%BINDIR%%PLATIND%/%PLATFORM%/include/unistd.h"),
  17. pm.install(d.."include/cpm.h", "%BINDIR%%PLATIND%/%PLATFORM%/include/cpm.h"),
  18. }
  19. }
  20. platform_cpm = group {
  21. ARCH = "i80",
  22. PLATFORM = "cpm",
  23. OPTIMISATION = "-O",
  24. -- Ensure the descr and headers are installed first because we'll need
  25. -- them to build the libraries.
  26. descr,
  27. headers,
  28. -- Build the back-end support.
  29. mach_i80,
  30. support_i80,
  31. lang_runtimes,
  32. -- Build the CP/M syscall library.
  33. libsys_cpm,
  34. bootsector,
  35. }