pmfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."mach/proto/as/"
  4. local parser = yacc {
  5. simple {
  6. outputs = {"%U%-%I%.y"},
  7. command = {
  8. "cd %out[1]:dirname% && "..
  9. "%BINDIR%%PLATDEP%/cpp -P -I%ROOTDIR%mach/%ARCH%/as -I"..d.." %CINCLUDES:cincludes% %in[1]% > %out[1]%"
  10. },
  11. file (d.."comm2.y"),
  12. }
  13. }
  14. local cfile_with_tables = cfile {
  15. class = "cfile_with_tables",
  16. CINCLUDES = {PARENT, "%ROOTDIR%mach/%ARCH%/as"},
  17. dynamicheaders = {
  18. parser,
  19. }
  20. }
  21. proto_as = cprogram {
  22. class = "proto_as",
  23. cfile_with_tables (d.."comm3.c"),
  24. cfile_with_tables (d.."comm4.c"),
  25. cfile_with_tables (d.."comm5.c"),
  26. cfile_with_tables (d.."comm6.c"),
  27. cfile_with_tables (d.."comm7.c"),
  28. cfile_with_tables (d.."comm8.c"),
  29. cfile {
  30. parser,
  31. },
  32. lib_object,
  33. outputs = {"%U%/%PLATFORM%-as"},
  34. install = pm.install(BINDIR.."%PLATDEP%/%PLATFORM%/as")
  35. }
  36. -- Revision history
  37. -- $Log$
  38. -- Revision 1.4 2007-02-20 00:45:19 dtrg
  39. -- Done a major overhaul of the way target include files are installed and
  40. -- how platform libraries are built. The ARCH pm variable has now been
  41. -- renamed PLATFORM (which is more accurate) and a different ARCH
  42. -- variable added, which represents the CPU family rather than the
  43. -- hardware platform.
  44. --
  45. -- Revision 1.3 2006/10/15 00:28:12 dtrg
  46. -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
  47. --
  48. -- Revision 1.2 2006/07/30 23:41:16 dtrg
  49. -- Broke dependency on tool_cpp in order to speed up the build.
  50. --
  51. -- Revision 1.1 2006/07/20 23:18:19 dtrg
  52. -- First version in CVS.
  53. --