2013-02-13 00:26:36 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-02-19 16:29:13 +01:00
|
|
|
make -C ../ -f Makefile.griffin platform=ngc clean || exit 1
|
2013-02-13 00:26:36 +01:00
|
|
|
|
|
|
|
for f in *_ngc.a ; do
|
2014-04-17 18:10:04 +02:00
|
|
|
name=`echo "$f" | sed 's/\(_libretro_ngc\|\).a$//'`
|
2013-02-13 00:26:36 +01:00
|
|
|
whole_archive=
|
2013-02-22 15:24:05 -05:00
|
|
|
big_stack=
|
2013-02-13 00:26:36 +01:00
|
|
|
if [ $name = "nxengine" ] ; then
|
2014-04-17 18:10:04 +02:00
|
|
|
echo "NXEngine found, applying whole archive linking..."
|
2013-02-13 00:26:36 +01:00
|
|
|
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
2013-02-22 15:24:05 -05:00
|
|
|
fi
|
|
|
|
if [ $name = "tyrquake" ] ; then
|
2014-04-17 18:10:04 +02:00
|
|
|
echo "Tyrquake found, applying big stack..."
|
2013-02-22 15:24:05 -05:00
|
|
|
big_stack="BIG_STACK=1"
|
2013-02-13 00:26:36 +01:00
|
|
|
fi
|
|
|
|
cp -f "$f" ../libretro_ngc.a
|
2014-02-19 16:29:13 +01:00
|
|
|
make -C ../ -f Makefile.griffin platform=ngc $whole_archive $big_stack -j3 || exit 1
|
2013-11-02 04:36:30 +01:00
|
|
|
mv -f ../retroarch_ngc.dol ../ngc/pkg/${name}_libretro_ngc.dol
|
2013-02-13 00:26:36 +01:00
|
|
|
rm -f ../retroarch_ngc.dol ../retroarch_ngc.elf ../retroarch_ngc.elf.map
|
|
|
|
done
|