C preprocessor; tabgen; now the pc86 boot.s builds using the ack

toolchain.
This commit is contained in:
David Given
2016-07-29 00:22:49 +02:00
parent c6292642c6
commit 363d13cc2f
8 changed files with 190 additions and 151 deletions

View File

@@ -1,7 +1,32 @@
include("mach/proto/as/build.lua")
include("mach/proto/ncg/build.lua")
definerule("build_plat",
definerule("ackfile",
{
srcs = { type="targets" },
deps = { type="targets", default={} },
},
function (e)
local plat = e.vars.plat
return cfile {
name = e.name,
srcs = e.srcs,
deps = {
"plat/"..plat.."+tools",
"util/ack+pkg",
"lang/cem/cpp.ansi+pkg",
unpack(e.deps)
},
commands = {
"ACKDIR=$(INSDIR) $(INSDIR)/bin/ack -m%{plat} -c -o %{outs} %{ins} %{hdrpaths} %{ackcflags}"
}
}
end
)
definerule("build_plat_tools",
{
arch = { type = "string" },
plat = { type = "string" },
@@ -19,28 +44,13 @@ definerule("build_plat",
arch = e.arch,
}
local tools = installable {
name = "tools",
map = {
["$(PLATDEP)/"..e.arch.."/as"] = as,
["$(PLATDEP)/"..e.plat.."/ncg"] = ncg,
["$(PLATIND)/descr/"..e.plat.."/descr"] = descr,
}
}
local libraries = installable {
name = "libraries",
map = {
}
}
return installable {
name = e.name,
map = {
tools,
libraries,
["$(PLATDEP)/"..e.plat.."/as"] = as,
["$(PLATDEP)/"..e.plat.."/ncg"] = ncg,
["$(PLATIND)/descr/"..e.plat] = descr,
}
}
end
)