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
+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",
}
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
name as
from .s.so
to .o
- program {EM}/lib/ack/linux386/as
+ program {EM}/lib/ack/{PLATFORM}/as
args - -o > <
prep cond
end
+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",
}
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
name asopt
from .s
to .so
- program {EM}/lib/ack/linuxppc/top
+ program {EM}/lib/ack/{PLATFORM}/top
args
optimizer
stdin
name as
from .s.so
to .o
- program {EM}/lib/ack/linuxppc/as
+ program {EM}/lib/ack/{PLATFORM}/as
args - -o > <
prep cond
end