ack/lang/b/lib/build.lua

28 lines
461 B
Lua
Raw Normal View History

include("plat/build.lua")
for _, plat in ipairs(vars.plats) do
acklibrary {
name = "lib_"..plat,
srcs = {
"./*.c",
"./*.e",
},
hdrs = {}, -- must be empty
deps = {
"./*.h",
"h+emheaders",
2016-12-26 19:44:48 +00:00
"lang/cem/libcc.ansi/headers+pkg",
"plat/"..plat.."/include+pkg",
},
vars = { plat = plat }
}
installable {
name = "pkg_"..plat,
map = {
["$(PLATIND)/"..plat.."/libb.a"] = "+lib_"..plat,
}
}
end