summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-02-08 12:52:25 +0000
committertruelight <truelight@openttd.org>2007-02-08 12:52:25 +0000
commita07cb5ad9775267dcd4af93abb0273ab1b0d713e (patch)
tree28424986ae78ca55f3a9cbadd467f63223366927 /config.lib
parentbc5d3ef3b0a2cb0d412807bd43fa1a6ec3f0c322 (diff)
downloadopenttd-a07cb5ad9775267dcd4af93abb0273ab1b0d713e.tar.xz
(svn r8632) [PSP] -Add: added include and lib to CFLAGS / LDFLAGS based on the SDK dir from psp-config
-Fix: disabled pthread for PSP
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index a85abf377..72bb452e6 100644
--- a/config.lib
+++ b/config.lib
@@ -654,7 +654,7 @@ make_cflags_and_ldflags() {
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
@@ -665,6 +665,10 @@ make_cflags_and_ldflags() {
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