ack/mach/proto/top/build.lua
2016-08-14 01:39:40 +02:00

20 lines
308 B
Lua

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
)