

tzgps.prc: code0001.tzgps.grc tAIB03e8.bin
	build-prc  tzgps.prc "TZ-GPS" TZGP *.grc *.bin
	ls -l *.prc

tAIB03e8.bin: tzgps.ico
	txttobmp <tzgps.ico >tAIB03e8.bin
	txttobmp <tzgpssm.ico >tAIB03e9.bin

code0001.tzgps.grc: tzgps.o
	m68k-palmos-coff-gcc $^ -o tzgps
	m68k-palmos-coff-obj-res tzgps

%.o: %.c
	m68k-palmos-coff-gcc -Wall -O3 -c $^ -o $@

%.o: %.s
	m68k-palmos-coff-gcc -Wall -O3 -c $^ -o $@

clean:
	rm -f *.grc *.bin tzgps tzgps.o
