2016-09-17 20:21:47 +00:00
|
|
|
normalrule {
|
2016-09-18 21:24:54 +00:00
|
|
|
name = "ircodes",
|
|
|
|
outleaves = { "ircodes.h", "ircodes.c" },
|
2016-09-17 20:21:47 +00:00
|
|
|
ins = {
|
2016-09-18 21:24:54 +00:00
|
|
|
"./ircodes.sh",
|
|
|
|
"./ir.dat"
|
2016-09-17 20:21:47 +00:00
|
|
|
},
|
|
|
|
commands = {
|
2016-09-18 21:24:54 +00:00
|
|
|
"%{ins[1]} %{ins[2]} %{outs[1]} %{outs[2]}"
|
2016-09-17 20:21:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cprogram {
|
|
|
|
name = "mcg",
|
|
|
|
srcs = {
|
|
|
|
"./*.c",
|
2016-09-18 21:24:54 +00:00
|
|
|
matching(filenamesof("+ircodes"), "%.c$")
|
2016-09-17 20:21:47 +00:00
|
|
|
},
|
|
|
|
deps = {
|
2016-09-18 21:24:54 +00:00
|
|
|
"+ircodes",
|
2016-09-17 20:21:47 +00:00
|
|
|
"h+emheaders",
|
|
|
|
"modules+headers",
|
2016-09-18 21:24:54 +00:00
|
|
|
"modules/src/alloc+lib",
|
2016-09-17 20:21:47 +00:00
|
|
|
"modules/src/em_code+lib_k",
|
|
|
|
"modules/src/em_data+lib",
|
2016-09-18 21:24:54 +00:00
|
|
|
"modules/src/idf+lib",
|
|
|
|
"modules/src/read_em+lib_kv",
|
2016-09-17 20:21:47 +00:00
|
|
|
"modules/src/system+lib",
|
2016-09-18 21:24:54 +00:00
|
|
|
"./*.h",
|
2016-09-20 22:43:10 +00:00
|
|
|
"util/mcgg+mcgg",
|
2016-09-18 21:24:54 +00:00
|
|
|
},
|
|
|
|
vars = {
|
2016-09-19 21:06:59 +00:00
|
|
|
["+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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|