2013-02-12 23:26:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
make -C ../ -f Makefile.ngc clean || exit 1
|
|
|
|
|
|
|
|
for f in *_ngc.a ; do
|
|
|
|
name=`echo "$f" | sed 's/\(_libretro\|\)_ngc.a$//'`
|
|
|
|
whole_archive=
|
2013-02-22 20:24:05 +00:00
|
|
|
big_stack=
|
2013-02-12 23:26:36 +00:00
|
|
|
if [ $name = "nxengine" ] ; then
|
|
|
|
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
2013-02-22 20:24:05 +00:00
|
|
|
fi
|
|
|
|
if [ $name = "tyrquake" ] ; then
|
|
|
|
big_stack="BIG_STACK=1"
|
2013-02-12 23:26:36 +00:00
|
|
|
fi
|
|
|
|
cp -f "$f" ../libretro_ngc.a
|
2013-02-22 20:24:05 +00:00
|
|
|
make -C ../ -f Makefile.ngc $whole_archive $big_stack -j3 || exit 1
|
2013-02-12 23:26:36 +00:00
|
|
|
mv -f ../retroarch_ngc.dol ../ngc/pkg/$name.dol
|
|
|
|
rm -f ../retroarch_ngc.dol ../retroarch_ngc.elf ../retroarch_ngc.elf.map
|
|
|
|
done
|