2016-08-11 22:24:40 +00:00
|
|
|
include("plat/build.lua")
|
|
|
|
|
|
|
|
for _, plat in ipairs(vars.plats) do
|
|
|
|
acklibrary {
|
|
|
|
name = "lib_"..plat,
|
|
|
|
srcs = {
|
|
|
|
"./*.c",
|
|
|
|
"./*.e",
|
|
|
|
},
|
|
|
|
hdrs = {}, -- must be empty
|
|
|
|
deps = {
|
|
|
|
"h+emheaders",
|
2016-12-05 20:05:24 +00:00
|
|
|
"lang/cem/libcc.ansi/headers+pkg",
|
|
|
|
"plat/"..plat.."/include+pkg",
|
2018-06-23 22:35:51 +00:00
|
|
|
"./*.h",
|
2016-08-11 22:24:40 +00:00
|
|
|
},
|
|
|
|
vars = { plat = plat }
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg_"..plat,
|
|
|
|
map = {
|
|
|
|
["$(PLATIND)/"..plat.."/libbasic.a"] = "+lib_"..plat,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|