ack/mach/proto/mcg/build.lua

48 lines
761 B
Lua
Raw Normal View History

2016-09-17 20:21:47 +00:00
normalrule {
name = "ircodes",
outleaves = { "ircodes.h", "ircodes.c" },
2016-09-17 20:21:47 +00:00
ins = {
"./ircodes.sh",
"./ir.dat"
2016-09-17 20:21:47 +00:00
},
commands = {
"%{ins[1]} %{ins[2]} %{outs[1]} %{outs[2]}"
2016-09-17 20:21:47 +00:00
}
}
cprogram {
name = "mcg",
srcs = {
"./*.c",
matching(filenamesof("+ircodes"), "%.c$")
2016-09-17 20:21:47 +00:00
},
deps = {
"+ircodes",
2016-09-17 20:21:47 +00:00
"h+emheaders",
"modules+headers",
"modules/src/alloc+lib",
2016-09-17 20:21:47 +00:00
"modules/src/em_code+lib_k",
"modules/src/em_data+lib",
"modules/src/idf+lib",
"modules/src/read_em+lib_kv",
2016-09-17 20:21:47 +00:00
"modules/src/system+lib",
"./*.h",
"util/mcgg+mcgg",
},
vars = {
["+cflags"] = {
"-Werror-implicit-function-declaration",
"-Wint-conversion"
}
2016-09-17 20:21:47 +00:00
}
}
-- Just for test purposes for now
installable {
name = "pkg",
map = {
["$(PLATDEP)/mcg"] = "+mcg"
}
}