CC = m68k-palmos-gcc
CFLAGS = -O2 -Wall

all: archer.prc

archer.prc: archer bin.stamp
	build-prc archer.prc "Archer" 'Arer' archer *.bin

archer: archer.o
	$(CC) $(CFLAGS) -o archer archer.o

archer.o: archer.c archer.h
	$(CC) $(CFLAGS) -c archer.c

bin.stamp: archer.rcp archer.h icon_lh8.bmp
	pilrc archer.rcp

clean:
	-rm -f *.[oa] archer *.bin *.stamp
