ack/mach/proto/top/build.lua

20 lines
308 B
Lua
Raw Normal View History

include("util/topgen/build.lua")
definerule("build_top",
{
arch = { type="string" },
},
function(e)
local t = topgen {
name = e.name.."_topgen",
srcs = { "mach/"..e.arch.."/top/table" }
}
return cprogram {
name = e.name,
srcs = { "mach/proto/top/*.c", },
deps = { t },
}
end
)