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