(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
This commit is contained in:
bjarni
2006-02-25 18:11:11 +00:00
parent fb301cced7
commit 8e7c2555fe
3 changed files with 42 additions and 0 deletions

View File

@@ -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)