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