ack/mach/proto/mcg/build.lua
David Given 9504aec2bd Function termination gets routed through an exit block; we now have prologues
and epilogues. mcgg now exports some useful data as headers. Start factoring
out some of the architecture-specific bits into an architecture-specific file.
2016-10-15 18:38:46 +02:00

44 lines
688 B
Lua

include("util/mcgg/build.lua")
mcgg {
name = "mcgg_c",
srcs = { "./table" }
}
cprogram {
name = "mcg",
srcs = {
"./*.c",
matching(filenamesof("+mcgg_c"), "%.c$"),
},
deps = {
"+mcgg_c",
"./*.h",
"h+emheaders",
"modules+headers",
"modules/src/alloc+lib",
"modules/src/data+lib",
"modules/src/em_code+lib_k",
"modules/src/em_data+lib",
"modules/src/idf+lib",
"modules/src/read_em+lib_ev",
"modules/src/string+lib",
"modules/src/system+lib",
"util/mcgg+lib",
},
vars = {
["+cflags"] = {
"-Werror-implicit-function-declaration",
}
}
}
-- Just for test purposes for now
installable {
name = "pkg",
map = {
["$(PLATDEP)/mcg"] = "+mcg"
}
}