2016-07-29 22:39:22 +00:00
|
|
|
local generated = normalrule {
|
2016-07-19 21:43:14 +00:00
|
|
|
name = "generated",
|
|
|
|
ins = {
|
|
|
|
"./new_table",
|
|
|
|
"h/em_table", -- relative to root, which is a bit evil
|
|
|
|
},
|
|
|
|
outleaves = {
|
|
|
|
"em_flag.c",
|
|
|
|
"em_pseu.c",
|
|
|
|
"em_mnem.c",
|
|
|
|
"em_spec.h",
|
|
|
|
"em_pseu.h",
|
|
|
|
"em_mnem.h",
|
|
|
|
},
|
|
|
|
deps = {
|
|
|
|
"h+emheaders"
|
|
|
|
},
|
|
|
|
commands = {
|
|
|
|
"%{ins[1]} %{ins[2]} %{dir} %{dir}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
clibrary {
|
2016-07-22 22:30:31 +00:00
|
|
|
name = "em_data",
|
2016-07-29 22:39:22 +00:00
|
|
|
srcs = concat(
|
2016-07-19 21:43:14 +00:00
|
|
|
"./em_ptyp.c",
|
2016-08-04 21:51:19 +00:00
|
|
|
matching(filenamesof(generated), "%.c$")
|
2016-07-29 22:39:22 +00:00
|
|
|
),
|
2016-07-19 21:43:14 +00:00
|
|
|
hdrs = {
|
|
|
|
"+generated" -- so we export the H files
|
|
|
|
},
|
|
|
|
deps = {
|
|
|
|
"+generated", -- so we can see the H files
|
|
|
|
"h+emheaders"
|
|
|
|
}
|
|
|
|
}
|