2016-08-13 23:39:40 +00:00
|
|
|
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,
|
2022-07-14 21:57:54 +00:00
|
|
|
srcs = {
|
|
|
|
"mach/proto/top/queue.c",
|
|
|
|
"mach/proto/top/top.c",
|
|
|
|
},
|
2016-08-13 23:39:40 +00:00
|
|
|
deps = { t },
|
|
|
|
}
|
|
|
|
end
|
|
|
|
)
|