mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 14:13:19 +00:00
26 lines
811 B
Bash
Executable File
26 lines
811 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#make -C ../ -f Makefile.wii.salamander clean || exit 1
|
|
make -C ../ -f Makefile.psp1 clean || exit 1
|
|
|
|
#make -C ../ -f Makefile.wii.salamander || exit 1
|
|
make -C ../ -f Makefile.psp1 || exit 1
|
|
|
|
for f in *_psp1.a ; do
|
|
name=`echo "$f" | sed 's/\(_libretro_psp1\|\).a$//'`
|
|
whole_archive=
|
|
big_stack=
|
|
if [ $name = "nxengine" ] ; then
|
|
echo "NXEngine found, applying whole archive linking..."
|
|
whole_archive="WHOLE_ARCHIVE_LINK=1"
|
|
fi
|
|
if [ $name = "tyrquake" ] ; then
|
|
echo "Tyrquake found, applying big stack..."
|
|
big_stack="BIG_STACK=1"
|
|
fi
|
|
cp -f "$f" ../libretro_psp1.a
|
|
make -C ../ -f Makefile.psp1 $whole_archive $big_stack -j3 || exit 1
|
|
mv -f ../retroarchpsp.prx ../psp1/pkg/${name}_libretro_psp1.prx
|
|
rm -f ../retroarchpsp.prx ../retroarchpsp.elf
|
|
done
|