descr 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $Source$
  2. # $State$
  3. # $Revision$
  4. var w=2
  5. var p=2
  6. var s=2
  7. var l=4
  8. var f=4
  9. var d=8
  10. var ARCH=i80
  11. var PLATFORM=cpm
  12. var PLATFORMDIR={EM}/lib/{PLATFORM}
  13. var CPP_F=-D__unix
  14. var ALIGN=-a0:1 -a1:1 -a2:1 -a3:1 -b0:0x0100
  15. var MACHOPT_F=-m8
  16. # Override the setting in fe so that files compiled for linux386 can see
  17. # the platform-specific headers.
  18. var C_INCLUDES=-I{PLATFORMDIR}/include -I{EM}/include/ansi
  19. name be
  20. from .m.g
  21. to .s
  22. program {EM}/lib.bin/{PLATFORM}/ncg
  23. args <
  24. stdout
  25. need .e
  26. end
  27. name as
  28. from .s.so
  29. to .o
  30. program {EM}/lib.bin/{PLATFORM}/as
  31. args - -o > <
  32. prep cond
  33. end
  34. name led
  35. from .o.a
  36. to .out
  37. program {EM}/lib.bin/em_led
  38. mapflag -l* LNAME={PLATFORMDIR}/lib*
  39. mapflag -i SEPID=-b1:0
  40. mapflag -fp FLOATS={EM}/{ILIB}fp
  41. args {ALIGN} {SEPID?} \
  42. (.e:{HEAD}={PLATFORMDIR}/boot.o) \
  43. ({RTS}:.ocm.b={PLATFORMDIR}/c-ansi.o) \
  44. ({RTS}:.c={PLATFORMDIR}/c-ansi.o) \
  45. ({RTS}:.mod={PLATFORMDIR}/modula2.o) \
  46. ({RTS}:.p={PLATFORMDIR}/pascal.o) \
  47. -o > < \
  48. (.p:{TAIL}={PLATFORMDIR}/libpascal.a) \
  49. (.b:{TAIL}={PLATFORMDIR}/libbasic.a) \
  50. (.mod:{TAIL}={PLATFORMDIR}/libmodula2.a) \
  51. (.ocm:{TAIL}={PLATFORMDIR}/liboccam.a) \
  52. (.ocm.b.mod.c.p:{TAIL}={PLATFORMDIR}/libc.a) \
  53. {FLOATS?} \
  54. (.e:{TAIL}={PLATFORMDIR}/libem.a \
  55. {PLATFORMDIR}/libsys.a \
  56. {PLATFORMDIR}/libend.a)
  57. linker
  58. end
  59. name cv
  60. from .out
  61. to .img
  62. program {EM}/bin/aslod
  63. args < >
  64. outfile cpm.com
  65. end