pmfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."lang/occam/comp/"
  4. local lpars = LLgen {
  5. file (d.."occam.g"),
  6. }
  7. local cfile_with_headers = cfile {
  8. class = "cfile_with_headers",
  9. dynamicheaders = {
  10. file (d),
  11. lpars
  12. }
  13. }
  14. lang_occam_compiler = cprogram {
  15. CLIBRARIES = {PARENT, "fl"},
  16. cfile_with_headers (d.."builtin.c"),
  17. cfile_with_headers (d.."code.c"),
  18. cfile_with_headers (d.."em.c"),
  19. cfile_with_headers (d.."expr.c"),
  20. cfile_with_headers (d.."keytab.c"),
  21. cfile_with_headers (d.."report.c"),
  22. cfile_with_headers (d.."symtab.c"),
  23. foreach {
  24. rule = cfile_with_headers,
  25. ith { lpars, from=2 }
  26. },
  27. cfile_with_headers {
  28. flex (d.."lex.l")
  29. },
  30. lib_em_mes,
  31. lib_emk,
  32. lib_em_data,
  33. -- lib_input,
  34. -- lib_assert,
  35. lib_alloc,
  36. -- lib_flt_arith,
  37. lib_print,
  38. lib_string,
  39. lib_system,
  40. outputs = {"%U%/em_occam"},
  41. install = {
  42. pm.install("%BINDIR%%PLATDEP%/em_occam"),
  43. }
  44. }
  45. -- Revision history
  46. -- $Log$
  47. -- Revision 1.2 2006-10-15 00:28:12 dtrg
  48. -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
  49. --
  50. -- Revision 1.1 2006/07/26 18:23:32 dtrg
  51. -- Added support for the Occam compiler.
  52. --