Pascal runtime library now builds.
This commit is contained in:
parent
e770d09dc8
commit
e0b8bd221d
46
lang/pc/libpc/build.lua
Normal file
46
lang/pc/libpc/build.lua
Normal file
|
@ -0,0 +1,46 @@
|
|||
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",
|
||||
"./sav.e",
|
||||
"./sig.e",
|
||||
"./trap.e",
|
||||
"./trp.e",
|
||||
},
|
||||
hdrs = {}, -- must be empty
|
||||
deps = {
|
||||
"lang/cem/libcc.ansi/headers+headers",
|
||||
"plat/"..plat.."+headers",
|
||||
"h+emheaders",
|
||||
},
|
||||
vars = { plat = plat }
|
||||
}
|
||||
|
||||
ackfile {
|
||||
name = "prt_"..plat,
|
||||
srcs = { "./head_pc.e" },
|
||||
vars = { plat = plat },
|
||||
deps = {
|
||||
"h+emheaders"
|
||||
}
|
||||
}
|
||||
|
||||
installable {
|
||||
name = "pkg_"..plat,
|
||||
map = {
|
||||
["$(PLATIND)/"..plat.."/pascal.o"] = "+prt_"..plat,
|
||||
["$(PLATIND)/"..plat.."/libpascal.a"] = "+lib_"..plat,
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
|
|
@ -93,8 +93,9 @@ definerule("build_plat_libs",
|
|||
name = e.name,
|
||||
map = {
|
||||
"lang/basic/lib+pkg_"..e.plat,
|
||||
"lang/m2/libm2+pkg_"..e.plat,
|
||||
"lang/cem/libcc.ansi+pkg_"..e.plat,
|
||||
"lang/m2/libm2+pkg_"..e.plat,
|
||||
"lang/pc/libpc+pkg_"..e.plat,
|
||||
["$(PLATIND)/"..e.plat.."/libem.a"] = "mach/"..e.arch.."/libem+lib_"..e.plat,
|
||||
["$(PLATIND)/"..e.plat.."/libend.a"] = "mach/"..e.arch.."/libend+lib_"..e.plat,
|
||||
["$(PLATIND)/"..e.plat.."/libsys.a"] = "mach/"..e.arch.."/libsys+lib_"..e.plat,
|
||||
|
|
Loading…
Reference in a new issue