diff options
author | bjarni <bjarni@openttd.org> | 2005-12-09 12:15:52 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-12-09 12:15:52 +0000 |
commit | 98ef748715887b45ee3004313c16690caf71c268 (patch) | |
tree | 324b2ec489c537c885f5f3b3634b1ee8d265c47a /os/macosx/Makefile.setup | |
parent | 79b76e239776992fb80ecfb20ef60be5f85e8d15 (diff) | |
download | openttd-98ef748715887b45ee3004313c16690caf71c268.tar.xz |
(svn r3274) -Fix: [OSX] added JAGUAR flag to crosscompile for OSX 10.2 (codenamed jaguar)
JAGUAR and FAT_BINARY can't be used at the same time
JAGUAR will disable network support due to missing libs in 10.2
Diffstat (limited to 'os/macosx/Makefile.setup')
-rw-r--r-- | os/macosx/Makefile.setup | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/os/macosx/Makefile.setup b/os/macosx/Makefile.setup index f42f34bf4..01c2813af 100644 --- a/os/macosx/Makefile.setup +++ b/os/macosx/Makefile.setup @@ -29,16 +29,29 @@ $(warning Compiling a release build, that is a debug build) endif endif +ifdef JAGUAR +ifdef FAT_BINARY +$(error FAT_BINARY and JAGUAR can't be used at the same time) +endif +endif + # setup flags if none are defined +ifndef CFLAGS_JAGUAR + CFLAGS_JAGUAR:= -isysroot /Developer/SDKs/MacOSX10.2.8.sdk +endif +ifndef LDFLAGS_JAGUAR + LDFLAGS_JAGUAR:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk +endif + +ifndef PPC_CC + PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0 +endif ifndef CFLAGS_PPC CFLAGS_PPC:= -isysroot /Developer/SDKs/MacOSX10.3.9.sdk endif ifndef LDFLAGS_PPC LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk endif -ifndef PPC_CC - PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0 -endif ifndef CFLAGS_x86 CFLAGS_x86:= -isysroot /Developer/SDKs/MacOSX10.4u.sdk endif @@ -115,3 +128,12 @@ $(error no x86 SDL lib found) LDFLAGS:= $(LDFLAGS_PPC) endif endif + +ifdef JAGUAR + CFLAGS:=$(CFLAGS_JAGUAR) + LDFLAGS:=$(LDFLAGS_JAGUAR) + # network support is broken is jaguar (OSX 10.2) + WITH_NETWORK:= + # crosscompiling for jaguar should always be static + STATIC:=1 +endif
\ No newline at end of file |