pmfile 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. -- $Source$
  2. -- $State$
  3. local d = "util/data/"
  4. local datafiles = simple {
  5. outputs = {
  6. "%U%/em_spec.h",
  7. "%U%/em_pseu.h",
  8. "%U%/em_mnem.h",
  9. "%U%/em_flag.c",
  10. "%U%/em_pseu.c",
  11. "%U%/em_mnem.c"
  12. },
  13. command = {
  14. "cd %ROOTDIR%etc && ./new_table %out[1]:dirname% %out[1]:dirname%"
  15. },
  16. install = {
  17. pm.install("%U%/em_spec.h", "%HEADERDIR%em_spec.h"),
  18. pm.install("%U%/em_pseu.h", "%HEADERDIR%em_pseu.h"),
  19. pm.install("%U%/em_mnem.h", "%HEADERDIR%em_mnem.h")
  20. },
  21. file "%ROOTDIR%etc/new_table",
  22. }
  23. local cfile_with_headers = cfile {
  24. class = "cfile_with_headers",
  25. dynamicheaders = {
  26. datafiles,
  27. }
  28. }
  29. module_em_data = clibrary {
  30. cfile_with_headers (d.."em_ptyp.c"),
  31. foreach {
  32. rule = cfile_with_headers,
  33. ith { datafiles, from=4 }
  34. },
  35. outputs = {"%U%/libem_data.a"},
  36. install = pm.install("%LIBDIR%libem_data.a")
  37. }
  38. lib_em_data = file "%LIBDIR%libem_data.a"
  39. -- Revision history
  40. -- $Log$
  41. -- Revision 1.1 2006-07-20 23:24:28 dtrg
  42. -- First version in CVS.
  43. --