yacc, ncgg; platform ncg builds now.
This commit is contained in:
45
mach/proto/ncg/build.lua
Normal file
45
mach/proto/ncg/build.lua
Normal file
@@ -0,0 +1,45 @@
|
||||
include("util/ncgg/build.lua")
|
||||
|
||||
definerule("build_ncg",
|
||||
{
|
||||
arch = { type="string" }
|
||||
},
|
||||
function(e)
|
||||
-- Remember this is executed from the caller's directory; local
|
||||
-- target names will resolve there
|
||||
local headers = clibrary {
|
||||
name = e.name.."/headers",
|
||||
srcs = {},
|
||||
hdrs = {
|
||||
"mach/proto/ncg/*.h",
|
||||
"mach/"..e.arch.."/ncg/mach*"
|
||||
}
|
||||
}
|
||||
|
||||
local tables = ncgg {
|
||||
name = e.name.."/tables",
|
||||
srcs = { "mach/"..e.arch.."/ncg/table" }
|
||||
}
|
||||
|
||||
return cprogram {
|
||||
name = e.name,
|
||||
srcs = {
|
||||
"mach/proto/ncg/*.c",
|
||||
"mach/"..e.arch.."/ncg/mach.h",
|
||||
archlib, -- for .c file
|
||||
tables, -- for .c file
|
||||
},
|
||||
deps = {
|
||||
"h+emheaders",
|
||||
"modules+headers",
|
||||
"modules/src/flt_arith+lib",
|
||||
"modules/src/object+lib",
|
||||
"util/data+em_data",
|
||||
archlib, -- for .h file
|
||||
headers,
|
||||
tables, -- for .h file
|
||||
}
|
||||
}
|
||||
end
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user