We can build our first C file.

This commit is contained in:
David Given
2016-08-07 21:56:53 +02:00
parent b50dc4214a
commit 0d77cb8279
16 changed files with 258 additions and 38 deletions

View File

@@ -0,0 +1,29 @@
for _, plat in ipairs(vars.plats) do
acklibrary {
name = "lib_"..plat,
srcs = {
"./assert/*.c",
},
hdrs = {
},
vars = { plat = plat }
}
ackfile {
name = "crt_"..plat,
srcs = { "./head_ac.e" },
vars = { plat = plat },
deps = {
"h+emheaders"
}
}
installable {
name = "pkg_"..plat,
map = {
["$(PLATIND)/"..plat.."/c-ansi.o"] = "+crt_"..plat,
--["$(PLATIND)/"..plat.."/libc.a"] = "+lib_"..plat,
}
}
end