mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-30 05:44:50 -05:00
39 lines
744 B
Bash
39 lines
744 B
Bash
#!/bin/sh
|
|
|
|
prefix=$INSTALLDIR
|
|
|
|
gcc -O2 tools/gba/gbafix.c
|
|
|
|
if [ -f a.out ]
|
|
then
|
|
exeext=
|
|
rm a.out
|
|
else
|
|
if [ -f a.exe ]
|
|
then
|
|
exeext=.exe
|
|
rm a.exe
|
|
else
|
|
echo "Error: Failed to build tools"
|
|
exit -1
|
|
fi
|
|
fi
|
|
|
|
$MAKE -C tools/gba
|
|
$MAKE -C tools/gba install PREFIX=$prefix/bin
|
|
|
|
$MAKE -C tools/general
|
|
$MAKE -C tools/general install PREFIX=$prefix/bin
|
|
|
|
$MAKE -C tools/nds/ndstool
|
|
$MAKE -C tools/nds/ndstool install PREFIX=$prefix/bin
|
|
$MAKE -C tools/nds/dsbuild
|
|
$MAKE -C tools/nds/dsbuild install PREFIX=$prefix/bin
|
|
|
|
cp tools/general/alignbin $prefix/bin/alignbin
|
|
|
|
# Awaiting Mr_Spiv's permission to add to project
|
|
#$MAKE -C tools/gp32/b2fxec
|
|
#cp tools/gp32/b2fxec/b2fxec$exeext $prefix/bin/b2fxec$exeext
|
|
#$MAKE -C tools/gp32/b2fxec clean
|