Don't share as, ncg, top between Linux and Mac OS X.

Telling osx386 and osxppc to build and run their own tools, not to
reuse the tools from linux386 and linuxppc.  This wastes time to build
identical tools, but it removes some bogus dependencies.  OS X tools
had wrongly depended on Linux descr files and aelflod; now they don't.

Discussion in https://github.com/davidgiven/ack/pull/23
This commit is contained in:
George Koehler 2016-12-05 20:13:29 -05:00
parent 3fe285f8f8
commit 6cbea83f7f
4 changed files with 39 additions and 7 deletions

View file

@ -1,8 +1,21 @@
include("plat/build.lua")
build_as {
name = "as",
arch = "i386",
}
build_ncg {
name = "ncg",
arch = "i386",
}
return installable {
name = "tools",
map = {
["$(PLATDEP)/osx386/as"] = "+as",
["$(PLATDEP)/osx386/ncg"] = "+ncg",
["$(PLATIND)/descr/osx386"] = "./descr",
"plat/linux386+tools",
"plat/osx/cvmach+pkg",
"util/opt+pkg",
}

View file

@ -34,7 +34,7 @@ var C_INCLUDES=-I{EM}/share/ack/osx/include -I{EM}/share/ack/include/ansi
name be
from .m.g
to .s
program {EM}/lib/ack/linux386/ncg
program {EM}/lib/ack/{PLATFORM}/ncg
mapflag -gdb GF=-gdb
args {GF?} <
stdout
@ -43,7 +43,7 @@ end
name as
from .s.so
to .o
program {EM}/lib/ack/linux386/as
program {EM}/lib/ack/{PLATFORM}/as
args - -o > <
prep cond
end

View file

@ -1,8 +1,27 @@
include("plat/build.lua")
build_as {
name = "as",
arch = "powerpc",
}
build_ncg {
name = "ncg",
arch = "powerpc",
}
build_top {
name = "top",
arch = "powerpc",
}
return installable {
name = "tools",
map = {
["$(PLATDEP)/osxppc/as"] = "+as",
["$(PLATDEP)/osxppc/ncg"] = "+ncg",
["$(PLATDEP)/osxppc/top"] = "+top",
["$(PLATIND)/descr/osxppc"] = "./descr",
"plat/linuxppc+tools",
"plat/osx/cvmach+pkg",
"util/opt+pkg",
}

View file

@ -30,7 +30,7 @@ var C_INCLUDES=-I{EM}/share/ack/osx/include -I{EM}/share/ack/include/ansi
name be
from .m.g
to .s
program {EM}/lib/ack/linuxppc/ncg
program {EM}/lib/ack/{PLATFORM}/ncg
mapflag -gdb GF=-gdb
args {GF?} <
stdout
@ -39,7 +39,7 @@ end
name asopt
from .s
to .so
program {EM}/lib/ack/linuxppc/top
program {EM}/lib/ack/{PLATFORM}/top
args
optimizer
stdin
@ -48,7 +48,7 @@ end
name as
from .s.so
to .o
program {EM}/lib/ack/linuxppc/as
program {EM}/lib/ack/{PLATFORM}/as
args - -o > <
prep cond
end