pmfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. "%in[1]% %in[2]% %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 (d.."new_table"),
  22. file ("%ROOTDIR%h/em_table"),
  23. }
  24. local cfile_with_headers = cfile {
  25. class = "cfile_with_headers",
  26. dynamicheaders = {
  27. datafiles,
  28. }
  29. }
  30. module_em_data = clibrary {
  31. cfile_with_headers (d.."em_ptyp.c"),
  32. foreach {
  33. rule = cfile_with_headers,
  34. ith { datafiles, from=4 }
  35. },
  36. outputs = {"%U%/libem_data.a"},
  37. install = pm.install("%LIBDIR%libem_data.a")
  38. }
  39. lib_em_data = file "%LIBDIR%libem_data.a"
  40. -- Revision history
  41. -- $Log$
  42. -- Revision 1.2 2007-02-25 12:49:04 dtrg
  43. -- new_table is now in /util/data, not /etc.
  44. --
  45. -- Revision 1.1 2006/07/20 23:24:28 dtrg
  46. -- First version in CVS.
  47. --