Test now compiling, but with icon errors

This commit is contained in:
meepingsnesroms
2018-03-31 19:23:46 -07:00
parent 9c3d6d46df
commit 5bdb89900d
6 changed files with 36 additions and 53 deletions

View File

@@ -1,45 +0,0 @@
APPNAME = TstSuite
ICONTEXT = "HWTests"
APPID = TstS
SRCS = testSuite.c ugui.c
CC = m68k-palmos-gcc -palmos3.5
BUILDPRC = build-prc
PILRC = pilrc
OBJRES = m68k-palmos-obj-res
# File names
RESFILE = $(APPNAME).rcp
PRC = ../$(APPNAME).prc
OBJS = $(SRCS:.c=.o)
# Compile options
DEFINES = -DHW_TEST
CSFLAGS = -O2 -S $(DEFINES) $(INCLUDES)
CFLAGS = -O2 -g $(DEFINES) $(INCLUDES)
# Makefile targets
.S.o:
$(CC) $(TARGETFLAGS) -c $<
.c.s:
$(CC) $(CSFLAGS) $<
$(PRC): code.stamp bin.stamp
$(BUILDPRC) $@ $(ICONTEXT) $(APPID) *.grc *.bin
code.stamp: $(APPNAME)
$(OBJRES) $(APPNAME)
touch code.stamp
bin.stamp: $(RESFILE)
$(PILRC) $(RESFILE)
touch bin.stamp
$(APPNAME): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $@
clean::
rm -rf *.[oa] $(APPNAME) *.bin *.stamp *.grc *~

27
hwTestSuite/make.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
APPNAME="TstSuite"
ICONTEXT="HWTests"
APPID="TstS"
CREATORID="guiC"
RESFILE=$APPNAME.rcp
PRC=$APPNAME.prc
SRCS="testSuite.c ugui.c"
DEFINES="-DHW_TEST"
CSFLAGS="-O2 -S $DEFINES $INCLUDES"
CFLAGS="-O2 -g $DEFINES $INCLUDES"
if [ "$1" = "clean" ]; then
rm -rf *.o *.a $APPNAME $PRC *.bin *.grc
exit
fi
m68k-palmos-gcc -palmos3.5 $CFLAGS $SRCS -o $APPNAME
m68k-palmos-obj-res $APPNAME
pilrc $RESFILE
build-prc $PRC $APPID $CREATORID *.grc *.bin

View File

@@ -1,7 +1,7 @@
#include <PalmOS.h>
#include <PalmCompatiblity.h>
#include <PalmCompatibility.h>
#include <stdint.h>
#include <ugui.h>
#include "ugui.h"
/* register for direct video hardware access on OS 3.1 */
#define LSSA *(( void **)0xFFFFFA00)
@@ -91,7 +91,7 @@ void testerExit(){
LLBAR = oldLlbar;
}
Bool testerFrameLoop(){
Boolean testerFrameLoop(){
uint16_t buttons = KeyCurrentState();
if(buttons & keyBitHard3){
@@ -105,12 +105,12 @@ Bool testerFrameLoop(){
}
DWord PilotMain(Word cmd, Ptr cmdBPB, Word launchFlags){
Bool running = true;
testerInit()
Boolean running = true;
testerInit();
while(running){
running = testerFrameLoop();
usleep(333333);//30 fps
SysTaskDelay(4);//30 fps
}
testerExit();

View File

@@ -17,7 +17,6 @@
#ifndef __UGUI_H
#define __UGUI_H
#include "system.h"
#include "ugui_config.h"

View File

@@ -1,5 +1,7 @@
#ifndef __UGUI_CONFIG_H
#define __UGUI_CONFIG_H
#define __UGUI_CONFIG_H
#include <stdint.h>
/* -------------------------------------------------------------------------------- */
/* -- CONFIG SECTION -- */