pmfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."lang/basic/src/"
  4. local lpars = LLgen {
  5. file (d.."basic.g"),
  6. }
  7. local tokentab_h = simple {
  8. outputs = {"%U%/token.h"},
  9. command = {
  10. "cd %out[1]:dirname% && %in[1]% %in[2]%"
  11. },
  12. file (d.."maketokentab"),
  13. lpars
  14. }
  15. local cfile_with_headers = cfile {
  16. class = "cfile_with_headers",
  17. dynamicheaders = {
  18. file (d),
  19. lpars,
  20. tokentab_h
  21. }
  22. }
  23. lang_basic_compiler = cprogram {
  24. cfile_with_headers (d.."bem.c"),
  25. cfile_with_headers (d.."symbols.c"),
  26. cfile_with_headers (d.."initialize.c"),
  27. cfile_with_headers (d.."compile.c"),
  28. cfile_with_headers (d.."parsepar.c"),
  29. cfile_with_headers (d.."gencode.c"),
  30. cfile_with_headers (d.."util.c"),
  31. cfile_with_headers (d.."graph.c"),
  32. cfile_with_headers (d.."eval.c"),
  33. cfile_with_headers (d.."func.c"),
  34. foreach {
  35. rule = cfile_with_headers,
  36. ith { lpars, from=2 }
  37. },
  38. lib_em_mes,
  39. lib_emk,
  40. lib_em_data,
  41. lib_alloc,
  42. lib_print,
  43. lib_string,
  44. lib_system,
  45. outputs = {"%U%/em_bem"},
  46. install = {
  47. pm.install("%BINDIR%%PLATDEP%/em_bem"),
  48. }
  49. }
  50. -- Revision history
  51. -- $Log$
  52. -- Revision 1.1 2006-07-26 23:08:09 dtrg
  53. -- Added support for the Basic compiler.
  54. --