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