I have modified the makefile as she follows:

CC = m68k-palmos-gcc
AS = m68k-palmos-as
CFLAGS = -O2 -g
LDFLAGS = -g

all: AdmnDI.prc

bin.stamp: AdmnDI.rcp;
    pilrc $^ $(BINDIR)
    touch $@

AdmnDI.prc: AdmnDI grc.stamp AdmnDI.def bin.stamp
    build-prc AdmnDI.prc "M.C.A." DCm1 AdmnDI.def *.grc *.bin

grc.stamp: AdmnDI;
    m68k-palmos-obj-res AdmnDI
    touch $@


AdmnDI: AdmnDI.o func.o AdmnDI-sections.o AdmnDI-sections.ld

AdmnDI.o: AdmnDI.c func.h
other.o: func.c func.h

AdmnDI-sections.o: AdmnDI-sections.s

AdmnDI-sections.s AdmnDI-sections.ld: AdmnDI.def
    m68k-palmos-multigen AdmnDI.def

clean:
    rm -f *.o *.grc *.bin *-sections.* *.prc AdmnDI

#--------------------------------------------------------
This is based in the multiapp Makefile. But that example does not have grc and bin 
resources, and dont know the 
order in the makefile, now have this error message:
$ make

m68k-palmos-gcc -O2 -g   -c -o AdmnDI.o AdmnDI.c
m68k-palmos-gcc -O2 -g   -c -o func.o func.c
m68k-palmos-multigen AdmnDI.def
m68k-palmos-as   -o AdmnDI-sections.o AdmnDI-sections.s
m68k-palmos-gcc -g  AdmnDI.o func.o AdmnDI-sections.o AdmnDI-sections.ld   -o AdmnDI
m68k-palmos-obj-res AdmnDI
AdmnDI:adm: warning: spurious code section ignored
AdmnDI:fun: warning: spurious code section ignored
AdmnDI:dbs: warning: spurious code section ignored
touch grc.stamp
build-prc AdmnDI.prc "M.C.A." DCm1 AdmnDI.def *.grc *.bin
build-prc: the definition file must come first
build-prc: can't read raw file '*.bin': No such file or directory
make: *** [AdmnDI.prc] Error 1

--
Open WebMail Project (http://openwebmail.org)


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

Reply via email to