ack/mach/proto/top/build.lua

23 lines
347 B
Lua
Raw Permalink 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/queue.c",
"mach/proto/top/top.c",
},
deps = { t },
}
end
)