Sorry, but here is Makefile:
VERSION = 1.0
APP = AdmnDI
ICONTEXT = "M.C.A."
APPID = DCm1
RCP = $(APP).rcp
PRC = $(APP).prc
GRC = $(APP).grc
DEF = $(APP).def
SRC = $(APP).c func.c
SECTIONS = $(APP)-sections
CC = m68k-palmos-gcc
PILRC = pilrc
BUILDPRC = build-prc
MULTIGEN = m68k-palmos-multigen
# Uncomment this if you want to build a GDB-debuggable version
#CFLAGS = -O2 -g
CFLAGS = -O2 -g
all: $(PRC)
$(PRC): $(APP) bin.stamp
$(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) $(DEF) *.grc *.bin
# ls -l *.prc
grc.stamp: $(APP);
$(OBJRES) $(APP)
touch $@
$(APP): $(SRC:.c=.o) $(SECTIONS).ld
$(CC) $(CFLAGS) $^ -o $@
bin.stamp: $(RCP)
$(PILRC) -q $^ $(BINDIR)
touch $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
# touch $<
# Enable the previous line if you want to compile EVERY time.
$(SECTIONS).o: $(SECTIONS).s
$(CC) $(CFLAGS) -c $< -o $@
$(SECTIONS).s $(SECTIONS).ld: $(DEF)
$(MULTIGEN) $(DEF)
depend dep:
$(CC) -M $(SRC) > .dependencies
clean:
rm -rf *.o $(APP) *.bin *.stamp *.grc *.s *.ld
veryclean: clean
rm -rf *.prc *.rcp *.bak
#------------------------------------------
This is based in the multiapp example Makefile, i law that has to include the header
file (only contain prototypes).
I dont find a correspondence in the follow lines with my makefile:
Makefile of multiapp:
multiapp.o: multiapp.c other.h
other.o: other.c other.h
My files are: AdmnDI.c and func.c. And the Header is AdmnDIDB.h
--
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/