Files
Mu/hwTestSuite/make.sh
meepingsnesroms c668ddccb9 Major cleanups
No longer wasting bandwidth with 64 bit commands, start adding IRDA VNC client
2018-05-17 13:31:37 -07:00

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