45 lines
764 B
Lua
45 lines
764 B
Lua
local function simpleprogram(name)
|
|
cprogram {
|
|
name = name,
|
|
srcs = { "./"..name..".c" },
|
|
deps = {
|
|
"h+emheaders",
|
|
"modules/src/alloc+lib",
|
|
"modules/src/data+lib",
|
|
"modules/src/object+lib",
|
|
"modules/src/system+lib",
|
|
}
|
|
}
|
|
|
|
installable {
|
|
name = name.."-pkg",
|
|
map = {
|
|
["$(INSDIR)/bin/"..name] = "+"..name,
|
|
["$(INSDIR)/share/man/man1/"..name..".1"] = "./"..name..".1",
|
|
}
|
|
}
|
|
end
|
|
|
|
simpleprogram("abmodules")
|
|
simpleprogram("aelflod")
|
|
simpleprogram("anm")
|
|
simpleprogram("ashow")
|
|
simpleprogram("asize")
|
|
simpleprogram("aslod")
|
|
simpleprogram("astrip")
|
|
simpleprogram("axlofflod")
|
|
|
|
installable {
|
|
name = "pkg",
|
|
map = {
|
|
"+abmodules-pkg",
|
|
"+aelflod-pkg",
|
|
"+anm-pkg",
|
|
"+ashow-pkg",
|
|
"+asize-pkg",
|
|
"+aslod-pkg",
|
|
"+astrip-pkg",
|
|
}
|
|
}
|
|
|