pmfile 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. -- $Source$
  2. -- $State$
  3. local d = ROOTDIR.."util/cgg/"
  4. local yacc_bootgram = yacc {
  5. file (d.."bootgram.y")
  6. }
  7. tool_cgg = cprogram {
  8. cfile (d.."main.c"),
  9. cfile {
  10. CINCLUDES = {PARENT, d},
  11. yacc_bootgram,
  12. },
  13. cfile {
  14. CINCLUDES = {PARENT, d},
  15. flex {
  16. file (d.."bootlex.l")
  17. },
  18. dynamicheaders = yacc_bootgram
  19. },
  20. CLIBRARIES = {PARENT, "fl"},
  21. lib_em_data,
  22. lib_assert,
  23. lib_system,
  24. install = pm.install(TOOLDIR.."cgg")
  25. }
  26. cgg = simple {
  27. class = "cgg",
  28. outputs = {"%U%/tables.c", "%U%/tables.h"},
  29. command = {
  30. "cd %out[1]:dirname% && (%BINDIR%%PLATDEP%/cpp -P -I%CGGINCLUDEDIR% %in% | %TOOLDIR%cgg)",
  31. },
  32. }
  33. -- Revision history
  34. -- $Log$
  35. -- Revision 1.3 2006-10-15 00:28:12 dtrg
  36. -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
  37. --
  38. -- Revision 1.2 2006/07/22 20:58:27 dtrg
  39. -- cpp now gets installed in the right place.
  40. --
  41. -- Revision 1.1 2006/07/20 23:21:17 dtrg
  42. -- First version in CVS.
  43. --