Fix up CC and CXX handling for mingw cross.

This commit is contained in:
Themaister 2013-05-19 12:03:25 +02:00
parent fb49cddd15
commit 7505e90af8
2 changed files with 67 additions and 55 deletions

View File

@ -6,6 +6,14 @@ die()
#exit 1
}
if [ "$CC" ] && [ "$CXX" ]; then
COMPILER="CC=\"$CC\" CXX=\"$CXX\""
else
COMPILER=""
fi
echo "Compiler: $COMPILER"
build_libretro_fba_full()
{
cd $BASE_DIR
@ -13,8 +21,8 @@ build_libretro_fba_full()
echo "=== Building Final Burn Alpha (Full) ==="
cd libretro-fba/
cd svn-current/trunk
${MAKE} -f makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Final Burn Alpha"
${MAKE} -f makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Final Burn Alpha"
${MAKE} -f makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean Final Burn Alpha"
${MAKE} -f makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build Final Burn Alpha"
cp fb_alpha_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "Final Burn Alpha not fetched, skipping ..."
@ -33,8 +41,8 @@ build_libretro_pcsx_rearmed()
${MAKE} -f Makefile.libretro platform=arm -j$JOBS clean || die "Failed to clean PCSX ReARMed"
${MAKE} -f Makefile.libretro platform=arm -j$JOBS || die "Failed to build PCSX ReARMed"
else
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean PCSX ReARMed"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build PCSX ReARMed"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean PCSX ReARMed"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build PCSX ReARMed"
fi
cp pcsx_rearmed_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
@ -50,13 +58,13 @@ build_libretro_mednafen()
echo "=== Building Mednafen ==="
cd libretro-mednafen
${MAKE} core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build mednafen/${core}"
${MAKE} core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=pce-fast platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS || die "Failed to build mednafen/${core}"
cp mednafen_pce_fast_libretro$FORMAT.$FORMAT_EXT $RARCH_DIST_DIR
for core in wswan ngp vb
do
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build mednafen/${core}"
cp mednafen_$(echo ${core} | tr '[\-]' '[_]')_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
done
else
@ -74,8 +82,8 @@ build_libretro_mednafen_psx()
for core in psx
do
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build mednafen/${core}"
cp mednafen_$(echo ${core} | tr '[\-]' '[_]')_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
done
else
@ -93,8 +101,8 @@ build_libretro_mednafen_gba()
for core in gba
do
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build mednafen/${core}"
cp mednafen_$(echo ${core} | tr '[\-]' '[_]')_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
done
else
@ -112,8 +120,8 @@ build_libretro_mednafen_snes()
for core in snes
do
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean mednafen/${core}"
${MAKE} core=${core} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build mednafen/${core}"
cp mednafen_$(echo ${core} | tr '[\-]' '[_]')_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
done
else
@ -127,8 +135,8 @@ build_libretro_stella()
if [ -d "libretro-stella" ]; then
echo "=== Building Stella ==="
cd libretro-stella
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} clean
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER clean
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS
cp stella_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
@ -142,8 +150,8 @@ build_libretro_quicknes()
if [ -d "libretro-quicknes" ]; then
echo "=== Building QuickNES ==="
cd libretro-quicknes/libretro
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean QuickNES"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build QuickNES"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean QuickNES"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build QuickNES"
cp quicknes_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "QuickNES not fetched, skipping ..."
@ -162,8 +170,8 @@ build_libretro_desmume()
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} DESMUME_JIT=1 -j$JOBS || die "Failed to build Desmume"
elif [ "$ARMV7" = true ]; then
echo "=== Building Desmume with ARMv7 JIT recompiler ==="
${MAKE} -f Makefile.libretro platform=arm DESMUME_JIT=1 -j$JOBS clean || die "Failed to clean Desmume"
${MAKE} -f Makefile.libretro platform=arm DESMUME_JIT=1 -j$JOBS || die "Failed to build Desmume"
${MAKE} -f Makefile.libretro platform=arm DESMUME_JIT=1 $COMPILER -j$JOBS clean || die "Failed to clean Desmume"
${MAKE} -f Makefile.libretro platform=arm DESMUME_JIT=1 $COMPILER -j$JOBS || die "Failed to build Desmume"
else
${MAKE} -f Makefile.libretro clean
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS
@ -181,8 +189,8 @@ build_libretro_s9x()
if [ -d "libretro-s9x" ]; then
echo "=== Building SNES9x ==="
cd libretro-s9x/libretro
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean SNES9x"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build SNES9x"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean SNES9x"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build SNES9x"
cp snes9x_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "SNES9x not fetched, skipping ..."
@ -195,8 +203,8 @@ build_libretro_s9x_next()
if [ -d "libretro-s9x-next" ]; then
echo "=== Building SNES9x-Next ==="
cd libretro-s9x-next/
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET_ALT} -j$JOBS clean || die "Failed to build SNES9x-Next"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET_ALT} -j$JOBS || die "Failed to build SNES9x-Next"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET_ALT} $COMPILER -j$JOBS clean || die "Failed to build SNES9x-Next"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET_ALT} $COMPILER -j$JOBS || die "Failed to build SNES9x-Next"
cp snes9x_next_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
cd ..
else
@ -210,8 +218,8 @@ build_libretro_genplus()
if [ -d "libretro-genplus" ]; then
echo "=== Building Genplus GX ==="
cd libretro-genplus/
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean Genplus GX"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build Genplus GX"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean Genplus GX"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build Genplus GX"
cp genesis_plus_gx_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "Genplus GX not fetched, skipping ..."
@ -225,8 +233,8 @@ build_libretro_mame078()
echo "=== Building MAME 0.78 ==="
cd libretro-mame078
${MAKE} -f makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean MAME 0.78"
${MAKE} -f makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build MAME 0.78"
${MAKE} -f makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean MAME 0.78"
${MAKE} -f makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build MAME 0.78"
cp mame078_libretro.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "MAME 0.78 not fetched, skipping ..."
@ -239,8 +247,8 @@ build_libretro_vba()
if [ -d "libretro-vba" ]; then
echo "=== Building VBA-Next ==="
cd libretro-vba/
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean VBA-Next"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build VBA-Next"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS clean || die "Failed to clean VBA-Next"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS || die "Failed to build VBA-Next"
cp vba_next_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "VBA-Next not fetched, skipping ..."
@ -253,8 +261,8 @@ build_libretro_fceu()
if [ -d "libretro-fceu" ]; then
echo "=== Building FCEUmm ==="
cd libretro-fceu
${MAKE} -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean FCEUmm"
${MAKE} -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build FCEUmm"
${MAKE} -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean FCEUmm"
${MAKE} -C fceumm-code -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build FCEUmm"
cp fceumm-code/fceumm_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "FCEUmm not fetched, skipping ..."
@ -267,8 +275,8 @@ build_libretro_gambatte()
if [ -d "libretro-gambatte" ]; then
echo "=== Building Gambatte ==="
cd libretro-gambatte/libgambatte
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS clean || die "Failed to clean Gambatte"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT -j$JOBS || die "Failed to build Gambatte"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS clean || die "Failed to clean Gambatte"
${MAKE} -f Makefile.libretro platform=$FORMAT_COMPILER_TARGET_ALT $COMPILER -j$JOBS || die "Failed to build Gambatte"
cp gambatte_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "Gambatte not fetched, skipping ..."
@ -281,8 +289,8 @@ build_libretro_nx()
if [ -d "libretro-nx" ]; then
echo "=== Building NXEngine ==="
cd libretro-nx
${MAKE} platform=$FORMAT_COMPILER_TARGET -j$JOBS clean || die "Failed to clean NXEngine"
${MAKE} platform=$FORMAT_COMPILER_TARGET -j$JOBS || die "Failed to build NXEngine"
${MAKE} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS clean || die "Failed to clean NXEngine"
${MAKE} platform=$FORMAT_COMPILER_TARGET $COMPILER -j$JOBS || die "Failed to build NXEngine"
cp nxengine_libretro$FORMAT.$FORMAT_EXT "$RARCH_DIST_DIR"
else
echo "NXEngine not fetched, skipping ..."
@ -295,8 +303,8 @@ build_libretro_prboom()
if [ -d "libretro-prboom" ]; then
echo "=== Building PRBoom ==="
cd libretro-prboom
${MAKE} platform=${FORMAT_COMPILER_TARGET_ALT} -j$JOBS clean || die "Failed to clean PRBoom"
${MAKE} platform=${FORMAT_COMPILER_TARGET_ALT} -j$JOBS || die "Failed to build PRBoom"
${MAKE} platform=${FORMAT_COMPILER_TARGET_ALT} $COMPILER -j$JOBS clean || die "Failed to clean PRBoom"
${MAKE} platform=${FORMAT_COMPILER_TARGET_ALT} $COMPILER -j$JOBS || die "Failed to build PRBoom"
cp prboom_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "PRBoom not fetched, skipping ..."
@ -309,8 +317,8 @@ build_libretro_meteor()
if [ -d "libretro-meteor" ]; then
echo "=== Building Meteor ==="
cd libretro-meteor/libretro
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean Meteor"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build Meteor"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean Meteor"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build Meteor"
cp meteor_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "Meteor not fetched, skipping ..."
@ -323,8 +331,8 @@ build_libretro_nestopia()
if [ -d "libretro-nestopia" ]; then
echo "=== Building Nestopia ==="
cd libretro-nestopia/libretro
${MAKE} platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean Nestopia"
${MAKE} platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build Nestopia"
${MAKE} platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean Nestopia"
${MAKE} platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build Nestopia"
cp nestopia_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "Nestopia not fetched, skipping ..."
@ -337,8 +345,8 @@ build_libretro_tyrquake()
if [ -d "libretro-tyrquake" ]; then
echo "=== Building Tyr Quake ==="
cd libretro-tyrquake
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean Tyr Quake"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build Tyr Quake"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean Tyr Quake"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build Tyr Quake"
cp tyrquake_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "Tyr Quake not fetched, skipping ..."
@ -351,8 +359,8 @@ build_libretro_modelviewer()
if [ -d "libretro-gl-modelviewer" ]; then
echo "=== Building Modelviewer (GL) ==="
cd libretro-gl-modelviewer
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean Modelviewer"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build Modelviewer"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean Modelviewer"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build Modelviewer"
cp modelviewer_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "ModelViewer not fetched, skipping ..."
@ -365,8 +373,8 @@ build_libretro_scenewalker()
if [ -d "libretro-gl-scenewalker" ]; then
echo "=== Building SceneWalker (GL) ==="
cd libretro-gl-scenewalker
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean SceneWalker"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build SceneWalker"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean SceneWalker"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build SceneWalker"
cp scenewalker_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "SceneWalker not fetched, skipping ..."
@ -379,8 +387,8 @@ build_libretro_scummvm()
if [ -d "libretro-scummvm" ]; then
echo "=== Building ScummVM ==="
cd libretro-scummvm/backends/platform/libretro/build
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean ScummVM"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build ScummVM"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean ScummVM"
${MAKE} -f Makefile platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build ScummVM"
cp scummvm_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "ScummVM not fetched, skipping ..."
@ -393,8 +401,8 @@ build_libretro_dosbox()
if [ -d "libretro-dosbox" ]; then
echo "=== Building DOSbox ==="
cd libretro-dosbox
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} -j$JOBS clean || die "Failed to clean DOSbox"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} -j$JOBS || die "Failed to build DOSbox"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS clean || die "Failed to clean DOSbox"
${MAKE} -f Makefile.libretro platform=${FORMAT_COMPILER_TARGET} $COMPILER -j$JOBS || die "Failed to build DOSbox"
cp dosbox_libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"
else
echo "DOSbox not fetched, skipping ..."
@ -446,7 +454,7 @@ build_libretro_bnes()
cd libretro-bnes
mkdir -p obj
${MAKE} -j$JOBS clean || die "Failed to clean bNES"
${MAKE} -j$JOBS || die "Failed to build bNES"
${MAKE} $COMPILER -j$JOBS || die "Failed to build bNES"
cp libretro${FORMAT}.${FORMAT_EXT} "$RARCH_DIST_DIR"/bnes_libretro.${FORMAT_EXT}
else
echo "bNES not fetched, skipping ..."

View File

@ -51,8 +51,6 @@ else
fi
fi
. ./libretro-build-common.sh
# BSDs don't have readlink -f
read_link()
{
@ -152,6 +150,12 @@ if [ -z "$CXX" ]; then
fi
fi
echo "CC = $CC"
echo "CXX = $CXX"
echo "STRIP = $STRIP"
. ./libretro-build-common.sh
mkdir -p "$RARCH_DIST_DIR"
if [ $1 ]; then