From e88a772ba1376de64a1ffd5ee6c4bda2aa33f7a4 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sun, 17 Feb 2008 12:54:39 +0000 Subject: [PATCH] add DEVKITPRO to environment, flags for building & installing libogc --- dkppc/scripts/build-crtls.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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