mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-17 07:16:08 -05:00
47 lines
1004 B
Bash
47 lines
1004 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
|
|
|
|
cd $BUILDSCRIPTDIR
|
|
|
|
cd $LIBFAT_SRCDIR
|
|
if [ ! -f built-libfat ]
|
|
then
|
|
echo "building libfat ..."
|
|
$MAKE ogc-install INSTALLDIR=$TOOLPATH
|
|
touch built-libfat
|
|
fi
|
|
|
|
|
|
cd $BUILDSCRIPTDIR
|
|
|
|
|
|
|