pmfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."util/ceg/as_parser/"
  4. local lpars = LLgen {
  5. file (d.."pars.g")
  6. }
  7. local cfile_with_headers = cfile {
  8. class = "cfile_with_headers",
  9. dynamicheaders = {
  10. file (d),
  11. lpars
  12. }
  13. }
  14. tool_ceg_as_parser = cprogram {
  15. CDEFINES = {PARENT, "FLEX"},
  16. CLIBRARIES = {PARENT, "fl"},
  17. cfile_with_headers (d.."conversion.c"),
  18. cfile_with_headers (d.."help.c"),
  19. cfile_with_headers {
  20. flex {
  21. file (d.."table.l")
  22. }
  23. },
  24. foreach {
  25. rule = cfile_with_headers,
  26. ith { lpars, from=2 }
  27. },
  28. lib_alloc,
  29. lib_print,
  30. lib_string,
  31. lib_system,
  32. outputs = {"%U%/as_parser"},
  33. install = pm.install(BINDIR.."%PLATDEP%/ceg/as_parser/as_parser"),
  34. }
  35. tool_ceg_as_parser_eval = cprogram {
  36. cfile (d.."eval/eval.c"),
  37. outputs = {"%U%/eval"},
  38. install = pm.install(BINDIR.."%PLATDEP%/ceg/as_parser/eval"),
  39. }
  40. -- Revision history
  41. -- $Log$
  42. -- Revision 1.2 2006-10-15 00:28:11 dtrg
  43. -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
  44. --
  45. -- Revision 1.1 2006/07/20 23:18:18 dtrg
  46. -- First version in CVS.
  47. --