Changeset - r5960:a497bbf17f00
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2007-02-08 12:52:25
truelight@openttd.org
(svn r8632) [PSP] -Add: added include and lib to CFLAGS / LDFLAGS based on the SDK dir from psp-config
-Fix: disabled pthread for PSP
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -651,23 +651,27 @@ make_cflags_and_ldflags() {
 

	
 
	if [ "$os" = "CYGWIN" ] || [ "$os" = "MINGW" ]; then
 
		LDFLAGS="$LDFLAGS -Wl,--subsystem,windows"
 
		LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32"
 
	fi
 

	
 
	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ]; then
 
	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ]; then
 
		LIBS="$LIBS -lpthread"
 
		LIBS="$LIBS -lrt"
 
	fi
 

	
 
	if [ "$os" != "CYGWIN" ] && [ "$os" != "MINGW" ] && [ "$os" != "WINCE" ]; then
 
		LIBS="$LIBS -lc"
 
	fi
 
	if [ "$os" = "WINCE" ]; then
 
		LIBS="$LIBS -lcoredll -lcorelibc -laygshell -lws2 -e WinMainCRTStartup"
 
	fi
 
	if [ "$os" = "PSP" ]; then
 
		CFLAGS="$CFLAGS -I`$psp_config -p`/include"
 
		LDFLAGS="$LDFLAGS -L`$psp_config -p`/lib"
 
	fi
 

	
 
	if [ "$os" = "MORPHOS" ]; then
 
		# -Wstrict-prototypes generates much noise because of system headers
 
		CFLAGS="$CFLAGS -Wno-strict-prototypes"
 
	fi
 

	
0 comments (0 inline, 0 general)