From 2a95b1c5e390a40bd838584a6ee87dc26440d958 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 22 Aug 2016 22:45:32 +0200 Subject: [PATCH] Forgot to check a file in. --- util/ego/share/build.lua | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 util/ego/share/build.lua diff --git a/util/ego/share/build.lua b/util/ego/share/build.lua new file mode 100644 index 000000000..ab1068d2c --- /dev/null +++ b/util/ego/share/build.lua @@ -0,0 +1,61 @@ +cprogram { + name = "makecldef", + srcs = { "./makecldef.c" } +} + +normalrule { + name = "classdefs_h", + ins = { + "+makecldef", + matching(filenamesof("modules/src/em_data+lib"), "em_mnem%.h$"), + "./cldefs.src" + }, + outleaves = { "classdefs.h" }, + commands = { + "%{ins} > %{outs}" + } +} + +normalrule { + name = "pop_push_h", + ins = { + "./pop_push.awk", + "h/em_table", + }, + outleaves = { "pop_push.h" }, + commands = { + "awk -f %{ins[1]} < %{ins[2]} > %{outs}" + } +} + +clibrary { + name = "lib", + srcs = { + "./debug.c", + "./global.c", + "./files.c", + "./go.c", + "./map.c", + "./aux.c", + "./get.c", + "./put.c", + "./alloc.c", + "./lset.c", + "./cset.c", + "./parser.c", + "./stack_chg.c", + "./locals.c", + "./init_glob.c", + }, + deps = { + "+classdefs_h", + "+pop_push_h", + "h+emheaders", + "modules/src/em_data+lib", + }, + vars = { + ["+cflags"] = {"-DVERBOSE", "-DNOTCOMPACT"} + } +} + +