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

25
util/cmisc/build.lua Normal file
View File

@@ -0,0 +1,25 @@
cprogram {
name = "tabgen",
srcs = { "./tabgen.c" }
}
definerule("tabgen",
{
srcs = { type="targets" },
},
function(e)
local symname = replace(basename(e.srcs[1]), "%.tab$", "")
return normalrule {
name = e.name,
ins = {
"util/cmisc+tabgen",
unpack(e.srcs)
},
outleaves = { symname..".c" },
commands = {
"%{ins[1]} -f%{ins[2]} > %{outs} || rm %{outs}"
}
}
end
)