All the amisc binaries now build.

This commit is contained in:
David Given 2016-06-19 09:32:45 +02:00
parent 1978867fd2
commit d805052205
5 changed files with 46 additions and 12 deletions

View file

@ -2,7 +2,7 @@ installable {
name = "ack", name = "ack",
map = { map = {
"util/ack+ack-pkg", "util/ack+ack-pkg",
"util/amisc+aelflod-pkg", "util/amisc+pkg",
} }
} }

View file

@ -162,7 +162,7 @@ definerule("cprogram",
commands = { commands = {
type="strings", type="strings",
default={ default={
"$(CC) -o %{outs[1]} %{ins}" "$(CC) -o %{outs[1]} %{ins} %{ins}"
}, },
} }
}, },

View file

@ -13,7 +13,9 @@ bundle {
name = "emheaders", name = "emheaders",
srcs = { srcs = {
"./em_*.h", "./em_*.h",
"./arch.h",
"./out.h", "./out.h",
"./ranlib.h",
"+em_path", "+em_path",
} }
} }

View file

@ -6,6 +6,16 @@ bundle {
clibrary { clibrary {
name = "string", name = "string",
srcs = { "./src/string/*.c" }, srcs = { "./src/string/*.c" },
deps = { "#headers" }, deps = { "+headers" },
}
clibrary {
name = "object",
srcs = { "./src/object/*.c" },
deps = {
"+headers",
"h+local",
"h+emheaders",
},
} }

View file

@ -1,16 +1,38 @@
cprogram { local function simpleprogram(name)
name = "aelflod", cprogram {
srcs = { "./aelflod.c" }, name = name,
deps = { srcs = { "./"..name..".c" },
"h+emheaders" deps = {
"h+emheaders",
"modules+object",
}
} }
}
installable {
name = name.."-pkg",
map = {
["$(INSDIR)/bin/"..name] = "+"..name,
["$(PLATIND)/man/man1/"..name..".1"] = "./"..name..".1",
}
}
end
simpleprogram("aelflod")
simpleprogram("anm")
simpleprogram("ashow")
simpleprogram("asize")
simpleprogram("aslod")
simpleprogram("astrip")
installable { installable {
name = "aelflod-pkg", name = "pkg",
map = { map = {
["$(INSDIR)/bin/aelflod"] = "+aelflod", "+aelflod-pkg",
["$(PLATIND)/man/man1/aelflod.1"] = "./aelflod.1", "+anm-pkg",
"+ashow-pkg",
"+asize-pkg",
"+aslod-pkg",
"+astrip-pkg",
} }
} }