1 1.8.4.2 tls # $NetBSD: Makefile.playstation2.inc,v 1.8.4.2 2014/08/20 00:03:17 tls Exp $ 2 1.8.4.2 tls 3 1.8.4.2 tls .if !defined(EXTERNAL_TOOLCHAIN) || ${EXTERNAL_TOOLCHAIN}=="" 4 1.8.4.2 tls .error please do not run "make" directly, use sh ../../conf/build.playstation2.sh instead 5 1.8.4.2 tls .endif 6 1.8.4.2 tls 7 1.8.4.2 tls # working around makesystem bugs: redefine CC and friends here or it does 8 1.8.4.2 tls # not properly get picked up by mkdep in sub-makes for "make depend" of 9 1.8.4.2 tls # libkern and friends - XXX fix this 10 1.8.4.2 tls PREFIX=${EXTERNAL_TOOLCHAIN} 11 1.8.4.2 tls PLATFORM=mipsel--netbsd 12 1.8.4.2 tls 13 1.8.4.2 tls CC=${PREFIX}/bin/${PLATFORM}-gcc 14 1.8.4.2 tls CPP=${PREFIX}/bin/${PLATFORM}-cpp 15 1.8.4.2 tls AS=${PREFIX}/bin/${PLATFORM}-as 16 1.8.4.2 tls AR=${PREFIX}/bin/${PLATFORM}-ar 17 1.8.4.2 tls LD=${PREFIX}/bin/${PLATFORM}-ld 18 1.8.4.2 tls RANLIB=${PREFIX}/bin/${PLATFORM}-ranlib 19 1.8.4.2 tls NM=${PREFIX}/bin/${PLATFORM}-nm 20 1.8.4.2 tls SIZE=${PREFIX}/bin/${PLATFORM}-size 21 1.8.4.2 tls STRIP=${PREFIX}/bin/${PLATFORM}-strip 22 1.8.4.2 tls 23 1.8.4.2 tls # Playstation2 uses 128 bit access, which currently requires n32 ABI 24 1.8.4.2 tls CFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float 25 1.8.4.2 tls AFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float 26