ack/util/data/pmfile
2006-07-20 23:24:28 +00:00

54 lines
983 B
Plaintext

-- $Source$
-- $State$
local d = "util/data/"
local datafiles = simple {
outputs = {
"%U%/em_spec.h",
"%U%/em_pseu.h",
"%U%/em_mnem.h",
"%U%/em_flag.c",
"%U%/em_pseu.c",
"%U%/em_mnem.c"
},
command = {
"cd %ROOTDIR%etc && ./new_table %out[1]:dirname% %out[1]:dirname%"
},
install = {
pm.install("%U%/em_spec.h", "%HEADERDIR%em_spec.h"),
pm.install("%U%/em_pseu.h", "%HEADERDIR%em_pseu.h"),
pm.install("%U%/em_mnem.h", "%HEADERDIR%em_mnem.h")
},
file "%ROOTDIR%etc/new_table",
}
local cfile_with_headers = cfile {
class = "cfile_with_headers",
dynamicheaders = {
datafiles,
}
}
module_em_data = clibrary {
cfile_with_headers (d.."em_ptyp.c"),
foreach {
rule = cfile_with_headers,
ith { datafiles, from=4 }
},
outputs = {"%U%/libem_data.a"},
install = pm.install("%LIBDIR%libem_data.a")
}
lib_em_data = file "%LIBDIR%libem_data.a"
-- Revision history
-- $Log$
-- Revision 1.1 2006-07-20 23:24:28 dtrg
-- First version in CVS.
--