pmfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. -- $Source: /cvsroot/tack/Ack/mach/proto/ncg/pmfile,v $
  2. -- $State: Exp $
  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. exename = "ncg",
  17. CINCLUDES = {
  18. PARENT,
  19. "mach/%PLATFORM%/ncg",
  20. "mach/%ARCHDIR%/ncg",
  21. "mach"
  22. },
  23. cfile_with_tables (d.."codegen.c"),
  24. cfile_with_tables (d.."compute.c"),
  25. cfile_with_tables (d.."equiv.c"),
  26. cfile_with_tables (d.."fillem.c"),
  27. cfile_with_tables (d.."gencode.c"),
  28. cfile_with_tables (d.."glosym.c"),
  29. cfile_with_tables (d.."label.c"),
  30. cfile_with_tables (d.."main.c"),
  31. cfile_with_tables (d.."move.c"),
  32. cfile_with_tables (d.."nextem.c"),
  33. cfile_with_tables (d.."reg.c"),
  34. cfile_with_tables (d.."regvar.c"),
  35. cfile_with_tables (d.."salloc.c"),
  36. cfile_with_tables (d.."state.c"),
  37. cfile_with_tables (d.."subr.c"),
  38. cfile_with_tables (d.."var.c"),
  39. cfile {
  40. ith { make_tables, i = 1 },
  41. CINCLUDES = {PARENT, d},
  42. },
  43. lib_em_data,
  44. lib_flt_arith,
  45. outputs = {"%U%/%PLATFORM%-%exename%"},
  46. install = pm.install("%BINDIR%%PLATDEP%/%PLATFORM%/%exename%")
  47. }