APP = hello
ICONTEXT = "Databases"
APPID = LFhe
RCP = $(APP).rcp
PRC = $(APP).prc
SRC = $(APP).c database.c
CC = m68k-palmos-gcc
PILRC = pilrc
OBJRES = m68k-palmos-obj-res
BUILDPRC = build-prc
CFLAGS = -O2 -Wall -palmos4.0
all: $(PRC)
$(PRC): grc.stamp bin.stamp;
$(BUILDPRC) $(PRC) $(ICONTEXT) $(APPID) *.grc *.bin
ls -l *.prc
grc.stamp: $(APP)
$(OBJRES) $(APP)
touch $@
$(APP): $(SRC:.c=.o)
$(CC) $(CFLAGS) $^ -o $@
bin.stamp: $(RCP)
$(PILRC) $^ $(BINDIR)
touch $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
depend dep:
$(CC) -M $(SRC) > .dependencies
clean:
rm -rf *.o $(APP) *.bin *.grc *.stamp *~
veryclean: clean
rm -rf *.prc *.bak