config.lib
changeset 6230 06c91ff0af27
parent 6212 39deaa03d180
child 6231 b81890a2b692
equal deleted inserted replaced
6229:f2d5b35a88da 6230:06c91ff0af27
   604 		OBJS_SUBDIR="debug"
   604 		OBJS_SUBDIR="debug"
   605 
   605 
   606 		# Each debug level reduces the optimalization by a bit
   606 		# Each debug level reduces the optimalization by a bit
   607 		if [ $enable_debug -ge 1 ]; then
   607 		if [ $enable_debug -ge 1 ]; then
   608 			CFLAGS="$CFLAGS -g -D_DEBUG"
   608 			CFLAGS="$CFLAGS -g -D_DEBUG"
       
   609 			if [ "$os" = "PSP" ]; then
       
   610 				CFLAGS="$CFLAGS -G0"
       
   611 			fi
   609 		fi
   612 		fi
   610 		if [ $enable_debug -ge 2 ]; then
   613 		if [ $enable_debug -ge 2 ]; then
   611 			CFLAGS="$CFLAGS -fno-inline"
   614 			CFLAGS="$CFLAGS -fno-inline"
   612 		fi
   615 		fi
   613 		if [ $enable_debug -ge 3 ]; then
   616 		if [ $enable_debug -ge 3 ]; then
   666 		LIBS="$LIBS -lcoredll -lcorelibc -laygshell -lws2 -e WinMainCRTStartup"
   669 		LIBS="$LIBS -lcoredll -lcorelibc -laygshell -lws2 -e WinMainCRTStartup"
   667 	fi
   670 	fi
   668 	if [ "$os" = "PSP" ]; then
   671 	if [ "$os" = "PSP" ]; then
   669 		CFLAGS="$CFLAGS -I`$psp_config -p`/include"
   672 		CFLAGS="$CFLAGS -I`$psp_config -p`/include"
   670 		LDFLAGS="$LDFLAGS -L`$psp_config -p`/lib"
   673 		LDFLAGS="$LDFLAGS -L`$psp_config -p`/lib"
       
   674 
       
   675 		CFLAGS="$CFLAGS -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150"
       
   676 		LIBS="$LIBS -D_PSP_FW_VERSION=150 -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -lm"
   671 	fi
   677 	fi
   672 
   678 
   673 	if [ "$os" = "MORPHOS" ]; then
   679 	if [ "$os" = "MORPHOS" ]; then
   674 		# -Wstrict-prototypes generates much noise because of system headers
   680 		# -Wstrict-prototypes generates much noise because of system headers
   675 		CFLAGS="$CFLAGS -Wno-strict-prototypes"
   681 		CFLAGS="$CFLAGS -Wno-strict-prototypes"