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