2016-08-13 11:07:19 +00:00
|
|
|
include("plat/build.lua")
|
|
|
|
|
|
|
|
for _, plat in ipairs(vars.plats) do
|
|
|
|
acklibrary {
|
|
|
|
name = "lib_"..plat,
|
|
|
|
srcs = {
|
|
|
|
"./*.c",
|
|
|
|
"./bts.e",
|
|
|
|
"./encaps.e",
|
|
|
|
"./fef.e",
|
|
|
|
"./fif.e",
|
|
|
|
"./gto.e",
|
|
|
|
"./hol0.e",
|
|
|
|
"./sig.e",
|
|
|
|
"./trap.e",
|
|
|
|
"./trp.e",
|
|
|
|
},
|
|
|
|
hdrs = {}, -- must be empty
|
|
|
|
deps = {
|
2018-06-18 20:17:38 +00:00
|
|
|
"h+emheaders",
|
2016-12-05 20:05:24 +00:00
|
|
|
"lang/cem/libcc.ansi/headers+pkg",
|
2018-06-18 20:17:38 +00:00
|
|
|
"lang/pc/include+headers",
|
2016-12-05 20:05:24 +00:00
|
|
|
"plat/"..plat.."/include+pkg",
|
2016-08-13 11:07:19 +00:00
|
|
|
},
|
|
|
|
vars = { plat = plat }
|
|
|
|
}
|
|
|
|
|
|
|
|
ackfile {
|
|
|
|
name = "prt_"..plat,
|
|
|
|
srcs = { "./head_pc.e" },
|
|
|
|
vars = { plat = plat },
|
|
|
|
deps = {
|
2018-06-18 20:17:38 +00:00
|
|
|
"h+emheaders",
|
|
|
|
"lang/pc/include+headers",
|
2016-08-13 11:07:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-10 11:25:48 +00:00
|
|
|
local suffix = plat:find("^em") and "m" or "o"
|
2016-08-13 11:07:19 +00:00
|
|
|
installable {
|
|
|
|
name = "pkg_"..plat,
|
|
|
|
map = {
|
2018-06-10 11:25:48 +00:00
|
|
|
["$(PLATIND)/"..plat.."/pascal."..suffix] = "+prt_"..plat,
|
2016-08-13 11:07:19 +00:00
|
|
|
["$(PLATIND)/"..plat.."/libpascal.a"] = "+lib_"..plat,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
|