CC=m68k-palmos-coff-gcc
CFLAGS= -O6 -I../palmopgp -I../pilotSSLeay-2.01/include -Wall

OBJS= opgptst.o addrbook.o crypto.o

opgptst.prc: code0001.opgptst.grc tAIB03e8.bin
	build-prc  opgptst.prc "OpenPGP" OPGP *.grc *.bin
	ls -l *.prc

tAIB03e8.bin: opgptst.rcp opgptst.h opgp.ico opgpsm.ico
	pilrc opgptst.rcp 
	txttobmp <opgp.ico >tAIB03e8.bin
	txttobmp <opgpsm.ico >tAIB03e9.bin

code0001.opgptst.grc: $(OBJS) opgptst.h ../palmopgp/libopgp.sa
	m68k-palmos-coff-gcc -O6 $(OBJS) -o opgptst -L../palmopgp -lopgp
	m68k-palmos-coff-obj-res opgptst

clean:
	rm *.prc *.grc *.bin opgptst $(OBJS)
