%: %.c
	m68k-palmos-gcc -Wall -O3 -I../Palmhdr $< -o $@ -lNetSocket 

palm: atache.prc

atache.prc: atache tAIB03e8.bin tAIB03e9.bin ../VERSION
	cp ../VERSION tver0001.bin
	build-prc atache.prc 'Atache' ATCH atache *.bin
	cp atache.prc ../Binaries/PalmOS

tAIB03e9.bin tAIB03e8.bin:
	pilrc atache.rcp

clean:
	rm -f *.bin atache *.prc
