diff options
author | bjarni <bjarni@openttd.org> | 2006-02-25 18:11:11 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-02-25 18:11:11 +0000 |
commit | 8e7c2555fedf34e3e7e66df66802d63d3d3bc04d (patch) | |
tree | eafdcc56afa5ecd2d9c1be6258e506b21d2c2840 /os/macosx/Makefile.setup | |
parent | fb301cced7d4773576416c78ef3e65950cf1f0a8 (diff) | |
download | openttd-8e7c2555fedf34e3e7e66df66802d63d3d3bc04d.tar.xz |
(svn r3673) -Codechange: [OSX] changed the makefile to autodetect if it compiles on G5 and then adds flags to optimise for G5
This will not interfere with crosscompiling or universal binaries
Diffstat (limited to 'os/macosx/Makefile.setup')
-rw-r--r-- | os/macosx/Makefile.setup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/os/macosx/Makefile.setup b/os/macosx/Makefile.setup index c2531815f..3e9e2cf27 100644 --- a/os/macosx/Makefile.setup +++ b/os/macosx/Makefile.setup @@ -16,6 +16,16 @@ $(warning Compiling a release build, that is not a universal binary) endif endif +ifndef FAT_BINARY +ifndef JAGUAR +ifeq ($(shell uname), Darwin) +# it's a hardware mac, not crosscompiling +$(Q)$(CC_HOST) os/macosx/G5_detector.c -o os/macosx/G5_detector +IS_G5:=$(shell os/macosx/G5_detector) +endif +endif +endif + ifdef FAT_BINARY ifndef STATIC $(warning Compiling a universal binary, that is not static. Adding static flag) |