os/macosx/Makefile.setup
changeset 2731 97a409a62741
parent 2730 3c3684ba54eb
child 2741 011462ebb67b
equal deleted inserted replaced
2730:3c3684ba54eb 2731:97a409a62741
    27 ifdef DEBUG
    27 ifdef DEBUG
    28 $(warning Compiling a release build, that is a debug build)
    28 $(warning Compiling a release build, that is a debug build)
    29 endif
    29 endif
    30 endif
    30 endif
    31 
    31 
    32 ifdef JAGUAR
       
    33 ifdef FAT_BINARY
       
    34 $(error FAT_BINARY and JAGUAR can't be used at the same time)
       
    35 endif
       
    36 endif
       
    37 
       
    38 # setup flags if none are defined
    32 # setup flags if none are defined
    39 ifndef CFLAGS_JAGUAR
       
    40 	CFLAGS_JAGUAR:= -isysroot /Developer/SDKs/MacOSX10.2.8.sdk
       
    41 endif
       
    42 ifndef LDFLAGS_JAGUAR
       
    43 	LDFLAGS_JAGUAR:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk
       
    44 endif
       
    45 
       
    46 ifndef PPC_CC
       
    47 	PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0
       
    48 endif
       
    49 ifndef CFLAGS_PPC
    33 ifndef CFLAGS_PPC
    50 	CFLAGS_PPC:= -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
    34 	CFLAGS_PPC:= -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
    51 endif
    35 endif
    52 ifndef LDFLAGS_PPC
    36 ifndef LDFLAGS_PPC
    53 	LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk
    37 	LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk
       
    38 endif
       
    39 ifndef PPC_CC
       
    40 	PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0
    54 endif
    41 endif
    55 ifndef CFLAGS_x86
    42 ifndef CFLAGS_x86
    56 	CFLAGS_x86:= -isysroot /Developer/SDKs/MacOSX10.4u.sdk
    43 	CFLAGS_x86:= -isysroot /Developer/SDKs/MacOSX10.4u.sdk
    57 endif
    44 endif
    58 ifndef LDFLAGS_x86
    45 ifndef LDFLAGS_x86
   126 		CC_TARGET:=$(PPC_CC)
   113 		CC_TARGET:=$(PPC_CC)
   127 		CFLAGS:= $(CFLAGS_PPC) -arch ppc
   114 		CFLAGS:= $(CFLAGS_PPC) -arch ppc
   128 		LDFLAGS:= $(LDFLAGS_PPC)
   115 		LDFLAGS:= $(LDFLAGS_PPC)
   129 	endif
   116 	endif
   130 endif
   117 endif
   131 
       
   132 ifdef JAGUAR
       
   133 	CFLAGS:=$(CFLAGS_JAGUAR)
       
   134 	LDFLAGS:=$(LDFLAGS_JAGUAR)
       
   135 	# network support is broken is jaguar (OSX 10.2)
       
   136 	WITH_NETWORK:=
       
   137 	# crosscompiling for jaguar should always be static
       
   138 	STATIC:=1
       
   139 	# libpng appears to break it too
       
   140 	WITH_PNG:=
       
   141 endif