pmfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."mach/proto/ncg/"
  4. local make_tables = ncgg {
  5. NCGGINCLUDEDIR = (ROOTDIR.."mach/%ARCHDIR%/ncg/"),
  6. file (ROOTDIR.."mach/%ARCHDIR%/ncg/table")
  7. }
  8. local cfile_with_tables = cfile {
  9. class = "cfile_with_tables",
  10. dynamicheaders = {
  11. make_tables,
  12. }
  13. }
  14. proto_ncg = cprogram {
  15. class = "proto_ncg",
  16. CINCLUDES = {
  17. PARENT,
  18. "mach/%PLATFORM%/ncg",
  19. "mach/%ARCHDIR%/ncg",
  20. "mach"
  21. },
  22. cfile_with_tables (d.."codegen.c"),
  23. cfile_with_tables (d.."compute.c"),
  24. cfile_with_tables (d.."equiv.c"),
  25. cfile_with_tables (d.."fillem.c"),
  26. cfile_with_tables (d.."gencode.c"),
  27. cfile_with_tables (d.."glosym.c"),
  28. cfile_with_tables (d.."label.c"),
  29. cfile_with_tables (d.."main.c"),
  30. cfile_with_tables (d.."move.c"),
  31. cfile_with_tables (d.."nextem.c"),
  32. cfile_with_tables (d.."reg.c"),
  33. cfile_with_tables (d.."regvar.c"),
  34. cfile_with_tables (d.."salloc.c"),
  35. cfile_with_tables (d.."state.c"),
  36. cfile_with_tables (d.."subr.c"),
  37. cfile_with_tables (d.."var.c"),
  38. cfile {
  39. ith { make_tables, i = 1 },
  40. CINCLUDES = {PARENT, d},
  41. },
  42. lib_em_data,
  43. lib_flt_arith,
  44. outputs = {"%U%/%PLATFORM%-ncg"},
  45. install = pm.install("%BINDIR%%PLATDEP%/%PLATFORM%/ncg")
  46. }