2016-11-27 21:05:15 +00:00
|
|
|
include("plat/build.lua")
|
|
|
|
|
|
|
|
for _, plat in ipairs(vars.plats) do
|
|
|
|
acklibrary {
|
|
|
|
name = "lib_"..plat,
|
|
|
|
srcs = {
|
2022-07-14 21:57:54 +00:00
|
|
|
"./init.c",
|
|
|
|
"./main.c",
|
2016-11-27 21:05:15 +00:00
|
|
|
},
|
|
|
|
hdrs = {}, -- must be empty
|
|
|
|
deps = {
|
2022-07-14 21:57:54 +00:00
|
|
|
"./b.h",
|
2016-11-27 21:05:15 +00:00
|
|
|
"h+emheaders",
|
2016-12-26 19:44:48 +00:00
|
|
|
"lang/cem/libcc.ansi/headers+pkg",
|
|
|
|
"plat/"..plat.."/include+pkg",
|
2016-11-27 21:05:15 +00:00
|
|
|
},
|
|
|
|
vars = { plat = plat }
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg_"..plat,
|
|
|
|
map = {
|
|
|
|
["$(PLATIND)/"..plat.."/libb.a"] = "+lib_"..plat,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|