config.lib
branchnoai
changeset 9641 855e32c08c9b
parent 9629 66dde6412125
child 9694 e72987579514
equal deleted inserted replaced
9640:494df85104a3 9641:855e32c08c9b
   700 		else
   700 		else
   701 			revision=""
   701 			revision=""
   702 			log 1 "checking revision... no detection"
   702 			log 1 "checking revision... no detection"
   703 			log 1 "WARNING: there is no means to determine the version."
   703 			log 1 "WARNING: there is no means to determine the version."
   704 			log 1 "WARNING: please use a subversion or git checkout of OpenTTD."
   704 			log 1 "WARNING: please use a subversion or git checkout of OpenTTD."
   705 			log 1 "WARNING: this version will be allowed by all game servers,"
   705 			log 1 "WARNING: this version is only allowed by game servers that"
   706 			log 1 "WARNING: but you will be kicked from all incompatible"
   706 			log 1 "WARNING: have been compiled without version detection."
   707 			log 1 "WARNING: servers as you will desync."
   707 			log 1 "WARNING: there is a great chance you desync."
   708 			log 1 "WARNING: USE WITH CAUTION!"
   708 			log 1 "WARNING: USE WITH CAUTION!"
   709 
   709 
   710 			sleep 5
   710 			sleep 5
   711 		fi
   711 		fi
   712 	fi
   712 	fi
   751 	if [ $enable_debug = 0 ]; then
   751 	if [ $enable_debug = 0 ]; then
   752 		# No debug, add default stuff
   752 		# No debug, add default stuff
   753 		OBJS_SUBDIR="release"
   753 		OBJS_SUBDIR="release"
   754 		if [ "$os" = "OSX" ]; then
   754 		if [ "$os" = "OSX" ]; then
   755 			# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
   755 			# these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer
   756 			CFLAGS="$CFLAGS -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic"
   756 			CFLAGS="-O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic $CFLAGS"
   757 		else
   757 		else
   758 			if [ "$os" = "MORPHOS" ]; then
   758 			if [ "$os" = "MORPHOS" ]; then
   759 				CFLAGS="$CFLAGS -I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations"
   759 				CFLAGS="-I/gg/os-include -noixemul -fstrict-aliasing -fexpensive-optimizations -mcpu=604 -fno-inline -mstring -mmultiple $CFLAGS"
   760 				CFLAGS="$CFLAGS -mcpu=604 -fno-inline -mstring -mmultiple"
       
   761 				LDFLAGS="$LDFLAGS -noixemul"
   760 				LDFLAGS="$LDFLAGS -noixemul"
   762 			fi
   761 			fi
   763 
   762 
   764 			CFLAGS="$CFLAGS -O2 -fomit-frame-pointer"
   763 			CFLAGS="-O2 -fomit-frame-pointer $CFLAGS"
   765 		fi
   764 		fi
   766 	else
   765 	else
   767 		OBJS_SUBDIR="debug"
   766 		OBJS_SUBDIR="debug"
   768 
   767 
   769 		# Each debug level reduces the optimalization by a bit
   768 		# Each debug level reduces the optimalization by a bit