sat86 671 B

12345678910111213141516171819202122232425262728293031323334
  1. var w=2
  2. var p=2
  3. var s=2
  4. var l=4
  5. var f=4
  6. var d=8
  7. var NAME=i8086
  8. var M=i86
  9. var LIB=mach/i86/lib/tail_
  10. var ALIB=mach/i86/lib/sat_tail_
  11. var RT=mach/i86/lib/head_
  12. var ART=mach/i86/lib/sat_head_
  13. var CCP_F=-Dunix
  14. var INCLUDES=-I{EM}/include -I/usr/include
  15. name be
  16. from .m
  17. to .s
  18. program {EM}/lib/{M}_cg
  19. args <
  20. prop >
  21. need .e
  22. end
  23. name asld
  24. from .s.a
  25. to a.out
  26. program {EM}/lib/{M}_as
  27. mapflag -l* LNAME={EM}/{LIB}*
  28. args (.e:{HEAD}={EM}/{ART}em) \
  29. ({RTS}:.c={EM}/{RT}cc) ({RTS}:.p={EM}/{RT}pc) -o > < \
  30. (.p:{TAIL}={EM}/{LIB}pc) (.c:{TAIL}={EM}/{LIB}cc.1s {EM}/{LIB}cc.2g) \
  31. (.c.p:{TAIL}={EM}/{ALIB}mon) (.c.p.e:{TAIL}={EM}/{LIB}alo) \
  32. (.e:{TAIL}={EM}/{LIB}em)
  33. prop C
  34. end