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