pmfile 917 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "%in[2]% -P -I%ROOTDIR%mach/%ARCH%/as -I"..d.." %CINCLUDES% %in[1]% > %out[1]%"
  10. },
  11. file (d.."comm2.y"),
  12. tool_cpp
  13. }
  14. }
  15. local cfile_with_tables = cfile {
  16. class = "cfile_with_tables",
  17. dynamicheaders = {
  18. parser,
  19. file (ROOTDIR.."mach/%ARCH%/as/")
  20. }
  21. }
  22. proto_as = cprogram {
  23. class = "proto_as",
  24. cfile_with_tables (d.."comm3.c"),
  25. cfile_with_tables (d.."comm4.c"),
  26. cfile_with_tables (d.."comm5.c"),
  27. cfile_with_tables (d.."comm6.c"),
  28. cfile_with_tables (d.."comm7.c"),
  29. cfile_with_tables (d.."comm8.c"),
  30. cfile {
  31. parser,
  32. },
  33. lib_object,
  34. outputs = {"%U%/%ARCH%-as"},
  35. install = pm.install(BINDIR.."%PLATDEP%/%ARCH%/as")
  36. }
  37. -- Revision history
  38. -- $Log$
  39. -- Revision 1.1 2006-07-20 23:18:19 dtrg
  40. -- First version in CVS.
  41. --