| @@ -1,25 +1,5 @@ | | | @@ -1,25 +1,5 @@ |
1 | # $NetBSD: Makefile.playstation2.inc,v 1.9 2015/04/06 10:49:13 martin Exp $ | | 1 | # $NetBSD: Makefile.playstation2.inc,v 1.10 2016/03/28 10:31:45 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 | | | 2 | |
23 | # Playstation2 uses 128 bit access, which currently requires n32 ABI | | 3 | # Playstation2 uses 128 bit access, which currently requires n32 ABI |
24 | CFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float -Wa,-msoft-float | | 4 | CFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float |
25 | AFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float | | 5 | AFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float |