2016-08-22 20:45:32 +00:00
|
|
|
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",
|
2019-02-08 23:02:41 +00:00
|
|
|
"./utils.c",
|
2016-08-22 20:45:32 +00:00
|
|
|
"./get.c",
|
|
|
|
"./put.c",
|
|
|
|
"./alloc.c",
|
|
|
|
"./lset.c",
|
|
|
|
"./cset.c",
|
|
|
|
"./parser.c",
|
|
|
|
"./stack_chg.c",
|
|
|
|
"./locals.c",
|
|
|
|
"./init_glob.c",
|
|
|
|
},
|
|
|
|
deps = {
|
2018-03-01 18:19:38 +00:00
|
|
|
"./*.h",
|
2016-08-22 20:45:32 +00:00
|
|
|
"+classdefs_h",
|
|
|
|
"+pop_push_h",
|
|
|
|
"h+emheaders",
|
|
|
|
"modules/src/em_data+lib",
|
|
|
|
},
|
|
|
|
vars = {
|
2019-11-14 21:17:17 +00:00
|
|
|
["+cflags"] = {"-DDEBUG", "-DVERBOSE", "-DNOTCOMPACT"}
|
2016-08-22 20:45:32 +00:00
|
|
|
}
|
|
|
|
}
|