More programs, more libraries. src/modules build files are now saner.

This commit is contained in:
David Given
2016-07-23 00:30:31 +02:00
parent 1fdc69fb97
commit 2770a83837
20 changed files with 256 additions and 221 deletions

View File

@@ -0,0 +1,88 @@
normalrule {
name = "em_code_ek_h",
ins = {
"./make.em.gen",
"./em.nogen",
"h/em_table"
},
outleaves = { "em_codeEK.h" },
commands = {
"%{ins[1]} %{ins[3]} > %{outs}",
"cat %{ins[2]} >> %{outs}"
}
}
local function build_variant(code, cflags)
clibrary {
name = "lib_"..code,
srcs = {
"./C_out.c",
"./bhcst.c",
"./bhdlb.c",
"./bhdnam.c",
"./bhfcon.c",
"./bhicon.c",
"./bhilb.c",
"./bhpnam.c",
"./bhucon.c",
"./crcst.c",
"./crdlb.c",
"./crdnam.c",
"./crilb.c",
"./crpnam.c",
"./crscon.c",
"./crxcon.c",
"./cst.c",
"./dfdlb.c",
"./dfdnam.c",
"./dfilb.c",
"./dlb.c",
"./dnam.c",
"./em.c",
"./end.c",
"./endarg.c",
"./exc.c",
"./failed.c",
"./fcon.c",
"./getid.c",
"./icon.c",
"./ilb.c",
"./insert.c",
"./internerr.c",
"./msend.c",
"./msstart.c",
"./op.c",
"./opcst.c",
"./opdlb.c",
"./opdnam.c",
"./opilb.c",
"./opnarg.c",
"./oppnam.c",
"./pnam.c",
"./pro.c",
"./pronarg.c",
"./psdlb.c",
"./psdnam.c",
"./pspnam.c",
"./scon.c",
"./ucon.c",
},
hdrs = {
"+em_code_ek_h"
},
deps = {
"+em_code_ek_h",
"h+emheaders",
"h+local",
"modules+headers",
"modules/src/alloc+lib",
"modules/src/system+lib",
"util/data+em_data",
},
cflags = { cflags }
}
end
build_variant("e", "-DREADABLE_EM")
build_variant("k", "")