mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-05 08:45:09 -05:00
32 lines
714 B
Bash
32 lines
714 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
|
|
|
|
g++ tools/general/bmp2bin.cpp -o $prefix/bin/bmp2bin$exeext -static -O2 -s -D__LITTLE_ENDIAN__
|
|
gcc tools/gba/gbafix.c -o $prefix/bin/gbafix$exeext -static -O2 -s
|
|
g++ -O2 -s -o $prefix/bin/ndstool$exeext tools/nds/ndstool.cpp -lelf -L /usr/local/lib -I /usr/local/include
|
|
|
|
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
|