Biggish refactor to break cycles; my build rules were full of them. cpm builds,
which requires top and topgen.
This commit is contained in:
19
mach/proto/top/build.lua
Normal file
19
mach/proto/top/build.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user