pmfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."mach/proto/cg/"
  4. local make_tables = cgg {
  5. CGGINCLUDEDIR = (ROOTDIR.."mach/%ARCH%/cg/"),
  6. file (ROOTDIR.."mach/%ARCH%/cg/table")
  7. }
  8. local cfile_with_tables = cfile {
  9. class = "cfile_with_tables",
  10. dynamicheaders = {
  11. make_tables,
  12. file (ROOTDIR.."mach/%ARCH%/cg/"),
  13. file (ROOTDIR.."mach/")
  14. }
  15. }
  16. proto_cg = cprogram {
  17. class = "proto_cg",
  18. cfile_with_tables (d.."codegen.c"),
  19. cfile_with_tables (d.."compute.c"),
  20. cfile_with_tables (d.."equiv.c"),
  21. cfile_with_tables (d.."gencode.c"),
  22. cfile_with_tables (d.."glosym.c"),
  23. cfile_with_tables (d.."move.c"),
  24. cfile_with_tables (d.."nextem.c"),
  25. cfile_with_tables (d.."reg.c"),
  26. cfile_with_tables (d.."regvar.c"),
  27. cfile_with_tables (d.."salloc.c"),
  28. cfile_with_tables (d.."state.c"),
  29. cfile_with_tables (d.."subr.c"),
  30. cfile_with_tables (d.."var.c"),
  31. cfile_with_tables (d.."fillem.c"),
  32. cfile_with_tables (d.."main.c"),
  33. cfile {
  34. ith { make_tables, i = 1 },
  35. dynamicheaders = {
  36. file (ROOTDIR.."mach/%ARCH%/cg/"),
  37. file (d)
  38. }
  39. },
  40. lib_em_data,
  41. lib_flt_arith,
  42. outputs = {"%U%/%ARCH%-cg"},
  43. install = pm.install("%BINDIR%%PLATDEP%/%ARCH%/cg")
  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/20 23:18:19 dtrg
  51. -- First version in CVS.