25b6712e63
them without luaposix, which isn't available (easily) on OSX or Windows.
32 lines
378 B
Lua
32 lines
378 B
Lua
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"
|
|
}
|
|
}
|
|
|