mirror of
https://github.com/libretro/Mu.git
synced 2026-07-21 08:06:17 +00:00
34 lines
789 B
Bash
Executable File
34 lines
789 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR
|
|
|
|
APPNAME="TstSuite"
|
|
ICONTEXT="HWTests"
|
|
|
|
if [ "$1" = "clean" ]; then
|
|
rm -rf *.o *.a $APPNAME $APPNAME-sections.s $APPNAME-sections.ld $APPNAME.prc *.bin
|
|
exit
|
|
fi
|
|
|
|
declare -a FILES=("testSuite" "viewer" "tools" "tests" "cpu" "irda" "vnc" "emuFunctions" "ugui")
|
|
DEFINES="-DHW_TEST"
|
|
CFLAGS="-palmos3.5 -O3 $DEFINES"
|
|
|
|
if [ "$1" = "debug" ]; then
|
|
DEFINES="$DEFINES -DDEBUG"
|
|
FILES+="debug"
|
|
CFLAGS="$CFLAGS -g"
|
|
fi
|
|
|
|
m68k-palmos-multigen $APPNAME.def
|
|
m68k-palmos-gcc $CFLAGS -c $APPNAME-sections.s -o $APPNAME-sections.o
|
|
for I in "${FILES[@]}"; do
|
|
m68k-palmos-gcc $CFLAGS -c $I.c -o $I.o
|
|
done
|
|
m68k-palmos-gcc -o $APPNAME *.o $APPNAME-sections.ld
|
|
|
|
pilrc $APPNAME.rcp
|
|
build-prc $APPNAME.def $APPNAME *.bin
|