2016-08-11 22:24:40 +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
|
|
|
"./abs.c",
|
|
|
|
"./asc.c",
|
|
|
|
"./asrt.c",
|
|
|
|
"./atn.c",
|
|
|
|
"./chr.c",
|
|
|
|
"./conversion.c",
|
|
|
|
"./error.c",
|
|
|
|
"./exp.c",
|
|
|
|
"./file.c",
|
|
|
|
"./hlt.c",
|
|
|
|
"./io.c",
|
|
|
|
"./log.c",
|
|
|
|
"./mki.c",
|
|
|
|
"./oct.c",
|
|
|
|
"./peek.c",
|
|
|
|
"./power.c",
|
|
|
|
"./print.c",
|
|
|
|
"./random.c",
|
|
|
|
"./read.c",
|
|
|
|
"./return.c",
|
|
|
|
"./salloc.c",
|
|
|
|
"./sgn.c",
|
|
|
|
"./sin.c",
|
|
|
|
"./sqt.c",
|
|
|
|
"./stop.c",
|
|
|
|
"./string.c",
|
|
|
|
"./swap.c",
|
|
|
|
"./trace.c",
|
|
|
|
"./trap.c",
|
|
|
|
"./write.c",
|
|
|
|
"./fef.e",
|
|
|
|
"./fif.e",
|
|
|
|
"./setline.e",
|
2016-08-11 22:24:40 +00:00
|
|
|
},
|
|
|
|
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",
|
2022-07-14 21:57:54 +00:00
|
|
|
"./bc_io.h",
|
|
|
|
"./lib.h",
|
2016-08-11 22:24:40 +00:00
|
|
|
},
|
|
|
|
vars = { plat = plat }
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg_"..plat,
|
|
|
|
map = {
|
|
|
|
["$(PLATIND)/"..plat.."/libbasic.a"] = "+lib_"..plat,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|