Hey again all, 

I'm back at trying to get the bitmapRsrc files working and I have run
into another problem.

rm -rf *.o BitmapRsrc NeoSlate *.bin *.grc *.stamp *~
m68k-palmos-gcc -g -c NeoSlate.c -o NeoSlate.o
m68k-palmos-gcc -g BitmapRsrc.c -o BitmapRsrc.o
BitmapRsrc.c: In function `BmpRsrcV3Create':
BitmapRsrc.c:398: warning: comparison is always false due to limited
range of data type
/usr/m68k-palmos/lib/crt0.o(.text+0x64): In function `start':
crt0.c:69: undefined reference to `PilotMain'
/usr/m68k-palmos/lib/gdbstub.o(.text+0x7a): In function `StartDebug':
gdbstub.c:46: undefined reference to `PilotMain'
collect2: ld returned 1 exit status
make: *** [BitmapRsrc.o] Error 1

I am thinking that I am not compiling right and that could be due to
my make file. I don't know too much about make files and I wondering
is this the problem why I can't get everything to compile?

Here is my make file:

APP      = NeoSlate
APPID    = NSla
RCP      = NeoSlateRsc.rcp
PRC      = NeoSlate.prc
SRC      = NeoSlate.c
BITMAP   = BitmapRsrc


CC       = m68k-palmos-gcc
PILRC    = pilrc
OBJRES   = m68k-palmos-obj-res
BUILDPRC = build-prc

CFLAGS   = -g

all: $(PRC) clean

$(PRC): grc.stamp bin.stamp;
        $(BUILDPRC) $(PRC) $(APP) $(APPID) *.grc *.bin
        ls -l *.prc

grc.stamp: $(APP)
        $(OBJRES) $(APP)
        touch $@

$(APP): $(SRC:.c=.o) BitmapRsrc.o
        $(CC) $(CFLAGS) $^ -o $@
        
BitmapRsrc.o: BitmapRsrc.c 
        $(CC) $(CFLAGS) $^ -o $@
        
BitmapRsrc.c: BitmapRsrc.h

bin.stamp: $(RCP)
        $(PILRC) $^ $(BINDIR)
        touch $@

%.o: %.c
        $(CC) $(CFLAGS) -c $< -o $@

depend dep:
        $(CC) -M $(SRC) > .dependencies

clean:
        rm -rf *.o $(BITMAP) $(APP) *.bin *.grc *.stamp *~

veryclean: clean
        rm -rf *.prc *.bak

Thanks Landon

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to