Makefile
changeset 5398 b490ef513a36
parent 5372 6d6a97f86b6b
child 5421 bd1b71c8a56a
equal deleted inserted replaced
5397:b1011ed9400e 5398:b490ef513a36
   110 # UNIVERSAL_BINARY: builds a universal binary for OSX. Make sure you got both PPC and x86 libs. Only works with GCC 4 or newer
   110 # UNIVERSAL_BINARY: builds a universal binary for OSX. Make sure you got both PPC and x86 libs. Only works with GCC 4 or newer
   111 # TRIPLE_BINARY: builds a universal binary with the addition of code optimised for G5 (which means a total of 3 binaries in one file)
   111 # TRIPLE_BINARY: builds a universal binary with the addition of code optimised for G5 (which means a total of 3 binaries in one file)
   112 # OTTD_PPC, OTTD_PPC970, OTTD_i386: compile for target architecture.
   112 # OTTD_PPC, OTTD_PPC970, OTTD_i386: compile for target architecture.
   113 #    Multiple flags can be used so OTTD_PPC:=1 OTTD_i386:=1 produces the same result as UNIVERSAL_BINARY
   113 #    Multiple flags can be used so OTTD_PPC:=1 OTTD_i386:=1 produces the same result as UNIVERSAL_BINARY
   114 #
   114 #
   115 # JAGUAR: Crosscompiling for OSX 1.2.8 (codenamed Jaguar). Only works if OSX is defined too. Only works with GCC 4 or newer
       
   116 #	This can be changed to any PPC version of OSX by changing the ppc flags in Makefile.config
       
   117 #
       
   118 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be BE, LE or PREPROCESSOR.
   115 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be BE, LE or PREPROCESSOR.
   119 #	PREPROCESSOR is always used on all OSX targets and will make the preprocessor pick the right endian.
   116 #	PREPROCESSOR is always used on all OSX targets and will make the preprocessor pick the right endian.
   120 #	this means that you don't have to think about endianess when compiling for OSX.
   117 #	this means that you don't have to think about endianess when compiling for OSX.
   121 #	Very useful for universal binaries and crosscompilers. Not sure if it works on non OSX targets
   118 #	Very useful for universal binaries and crosscompilers. Not sure if it works on non OSX targets
   122 # WINDRES: the location of your windres
   119 # WINDRES: the location of your windres
   536 LIBS += $(LDFLAGS_FONTCONFIG)
   533 LIBS += $(LDFLAGS_FONTCONFIG)
   537 endif
   534 endif
   538 
   535 
   539 # iconv is enabled defaultly on OSX >= 10.3
   536 # iconv is enabled defaultly on OSX >= 10.3
   540 ifdef OSX
   537 ifdef OSX
   541 	ifndef JAGUAR
   538 	WITH_ICONV=1
   542 		WITH_ICONV=1
   539 	LIBS += -liconv
   543 		LIBS += -liconv
       
   544 	endif
       
   545 endif
   540 endif
   546 
   541 
   547 ifdef WITH_ICONV
   542 ifdef WITH_ICONV
   548 	CDEFS += -DWITH_ICONV
   543 	CDEFS += -DWITH_ICONV
   549 	ifdef WITH_ICONV_PATH
   544 	ifdef WITH_ICONV_PATH