Thanks, it worked just fine. I was also able to get the Hello World from the
book working, using the standard one as a model. I guess I'm not so good at
Makefile modification, because apparently mine wasn't doing the right job that
it should have. It's attached to this post, if anybody is particularly good
at makefile creation and wants to have a look at whatever amateurish mistake I
may have made, but since I've got managed makefiles now, its not dire that I
get that makefile working.
I'll take your advice Jay and use Managed makefiles, I can still implemenent
the techniques in my book and just let PODS handle the nitty-gritties, as they
may be.
Thanks again!
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
# a generic makefile, dont worry, the tabs look fine in PODS
# change the APP, ICONTEXT, and SRC variables, and you should be # fine
APP = hello2
ICONTEXT = "Hello2"
APPID = LFhe
#RCP = $(APP).rcp
PRC = $(APP).prc
SRC = helloMain.c
XRD = $(APP).xrd
CC = m68k-palmos-gcc
PILRC = pilrc
OBJRES = m68k-palmos-obj-res
BUILDPRC = build-prc
BUILDXRD = PalmRc
# Uncomment this if you want to build a GDB debug version
# CFLAGS = -00 -g
# please leave the following line commented unless you know what # this flag
does (not needed for GDB debug)
# CFLAGS = -02
all: $(PRC)
$(PRC): grc.stamp bin.stamp;
$(BUILDPRC) -t appl -o $(PRC) -n $(ICONTEXT) -c $(APPID) *.grc
ls -l *.prc
grc.stamp: $(APP)
$(OBJRES) $(APP)
touch $@
$(APP): $(SRC:.c=.o)
$(CC) $(CFLAGS) $^ -o $@
#bin.stamp: $(RCP)
# $(PILRC) $^ $(BINDIR)
# touch $@
bin.stamp: $(XRD)
$(BUILDXRD) $(XRD) -o $(APP).prc
touch $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
# touch $<
# Enable the previous line if you want to compile
# EVERY time.
depend dep:
$(CC) -M $(SRC) > .dependencies
clean:
rm -rf *.o $(APP) *.bin *.grc *.stamp *~
veryclean: clean
rm -rf *.prc *.bak