Biggish refactor to break cycles; my build rules were full of them. cpm builds,
which requires top and topgen.
This commit is contained in:
8
mach/i80/libem/build.lua
Normal file
8
mach/i80/libem/build.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
for _, plat in ipairs(vars.plats) do
|
||||
acklibrary {
|
||||
name = "lib_"..plat,
|
||||
srcs = { "./*.s" },
|
||||
vars = { plat = plat },
|
||||
}
|
||||
end
|
||||
|
||||
8
mach/i80/libend/build.lua
Normal file
8
mach/i80/libend/build.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
for _, plat in ipairs(vars.plats) do
|
||||
acklibrary {
|
||||
name = "lib_"..plat,
|
||||
srcs = { "./*.s" },
|
||||
vars = { plat = plat },
|
||||
}
|
||||
end
|
||||
|
||||
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