pmfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. dynamicheaders = {
  17. parser,
  18. file (ROOTDIR.."mach/%ARCH%/as/")
  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%/%ARCH%-as"},
  34. install = pm.install(BINDIR.."%PLATDEP%/%ARCH%/as")
  35. }
  36. -- Revision history
  37. -- $Log$
  38. -- Revision 1.3 2006-10-15 00:28:12 dtrg
  39. -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
  40. --
  41. -- Revision 1.2 2006/07/30 23:41:16 dtrg
  42. -- Broke dependency on tool_cpp in order to speed up the build.
  43. --
  44. -- Revision 1.1 2006/07/20 23:18:19 dtrg
  45. -- First version in CVS.
  46. --