buildscripts/dkppc/scripts/build-crtls.sh
2008-02-17 14:20:20 +00:00

33 lines
818 B
Bash

#!/bin/sh
export DEVKITPPC=$TOOLPATH/devkitPPC
export DEVKITPRO=$TOOLPATH
#---------------------------------------------------------------------------------
# Install and build the gamecube crt and libogc
#---------------------------------------------------------------------------------
echo "installing linkscripts ..."
cp `pwd`/dkppc/crtls/*.ld $DEVKITPPC/$target/lib/
#---------------------------------------------------------------------------------
# copy base rulesets
#---------------------------------------------------------------------------------
cp `pwd`/dkppc/rules/* $DEVKITPPC
cd $LIBOGC_SRCDIR
if [ ! -f built-libogc ]
then
echo "building libogc ..."
$MAKE
touch built-libogc
fi
if [ ! -f installed-libogc ]
then
echo "installing libogc ..."
$MAKE install
touch installed-libogc
fi