Home | History | Annotate | Line # | Download | only in conf
Makefile.playstation2.inc revision 1.6.2.1
      1  1.6.2.1     tls #	$NetBSD: Makefile.playstation2.inc,v 1.6.2.1 2014/08/10 06:54:04 tls 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.6.2.1     tls 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.6.2.1     tls CFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float
     25  1.6.2.1     tls AFLAGS+= -mabi=n32 -march=r5900 -fno-pic -msoft-float
     26