diff --git a/dkppc/scripts/build-crtls.sh b/dkppc/scripts/build-crtls.sh index ffa8200..eeb385c 100644 --- a/dkppc/scripts/build-crtls.sh +++ b/dkppc/scripts/build-crtls.sh @@ -1,6 +1,7 @@ #!/bin/sh export DEVKITPPC=$TOOLPATH/devkitPPC +export DEVKITPRO=$TOOLPATH #--------------------------------------------------------------------------------- # Install and build the gamecube crt and libogc @@ -13,11 +14,20 @@ cp `pwd`/dkppc/crtls/*.ld $DEVKITPPC/$target/lib/ #--------------------------------------------------------------------------------- cp `pwd`/dkppc/rules/gamecube_rules dkppc/rules/base_rules $DEVKITPPC -echo "building libogc ..." cd $LIBOGC_SRCDIR -$MAKE +if [ ! -f built-libogc ] +then + echo "building libogc ..." + $MAKE + touch built-libogc +fi + echo "installing libogc ..." -$MAKE install - +if [ ! -f installed-libogc ] +then + echo "building libogc ..." + $MAKE install + touch installed-libogc +fi