ack/plat/linuxppc/emu/build.lua

32 lines
378 B
Lua
Raw Normal View History

normalrule {
name = "dispatcher",
ins = {
"./mkdispatcher.lua",
"./instructions.dat"
},
outleaves = {
"dispatcher.h"
},
commands = {
"$(LUA) %{ins[1]} < %{ins[2]} > %{outs}"
}
}
clibrary {
name = "dispatcher_lib",
srcs = {},
hdrs = { "+dispatcher" }
}
cprogram {
name = "emuppc",
srcs = {
"./emu.c",
"./main.c",
},
deps = {
"+dispatcher_lib"
}
}