1#!/bin/sh 2DESTDIR=/work/playstation2/root; export DESTDIR 3RELEASEDIR=/work/playstation2/release; export RELEASEDIR 4root=/usr/pkg/cross-ps2 5target=mipsEEel-netbsd 6 7PATH=\ 8$PATH:\ 9${root}/${target}/bin:\ 10${root}/bin 11export PATH 12 13CC=${root}/bin/${target}-gcc; export CC 14LD=${root}/bin/${target}-ld; export LD 15CXX=${root}/bin/${target}-g++; export CXX 16AS=${root}/bin/${target}-as; export AS 17CPP=${root}/bin/${target}-cpp; export CPP 18RANLIB=${root}/bin/${target}-ranlib; export RANLIB 19AR=${root}/bin/${target}-ar; export AR 20NM=${root}/bin/${target}-nm; export NM 21SIZE=${root}/bin/${target}-size; export SIZE 22STRIP=${root}/bin/${target}-strip; export STRIP 23 24STRIPFLAGS="--strip-debug"; export STRIPFLAGS 25STRIPPROG=${target}-strip; export STRIPPROG 26 27HOSTED_CC=cc; export HOSTED_CC 28 29TARGET=mipsel; export TARGET 30MACHINE=playstation2; export MACHINE 31MACHINE_ARCH=mipsel; export MACHINE_ARCH 32MACHINE_CPU=mips; export MACHINE_CPU 33 34DESTDIR=${bsd_root}; export DESTDIR 35 36MAKE="make"; export MAKE 37#MAKE="make -f /work/cvsrep/sharesrc/share/mk/sys.mk -f Makefile"; export MAKE 38#MAKEFLAGS="-I /work/cvsrep/sharesrc/share/mk"; export MAKEFLAGS 39 40set -x 41exec $MAKE "$@" 42