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",
map = {
"util/ack+ack-pkg",
"util/amisc+aelflod-pkg",
"util/amisc+pkg",
}
}

View file

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

View file

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

View file

@ -6,6 +6,16 @@ bundle {
clibrary {
name = "string",
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 {
name = "aelflod",
srcs = { "./aelflod.c" },
deps = {
"h+emheaders"
local function simpleprogram(name)
cprogram {
name = name,
srcs = { "./"..name..".c" },
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 {
name = "aelflod-pkg",
name = "pkg",
map = {
["$(INSDIR)/bin/aelflod"] = "+aelflod",
["$(PLATIND)/man/man1/aelflod.1"] = "./aelflod.1",
"+aelflod-pkg",
"+anm-pkg",
"+ashow-pkg",
"+asize-pkg",
"+aslod-pkg",
"+astrip-pkg",
}
}