
all: springboard.prc

clean:
	-rm -f *.prc *.bin *.grc *.out *.o springboard.tar.gz

springboard.o: springboard.cpp springboard.h format.c format.h resource.h
	m68k-palmos-gcc -O3 springboard.cpp format.c -c

springboard.out: springboard.o
	m68k-palmos-gcc springboard.o format.o -o springboard.out

code0000.springboard.out.grc: springboard.out
	m68k-palmos-obj-res springboard.out

tver0001.bin: springboard.rcp resource.h springboard.bmp
	pilrc springboard.rcp

springboard.prc: code0000.springboard.out.grc tver0001.bin
	build-prc springboard.prc "Springboard Test" SpBd *.grc *.bin


DISTFILES = \
	format.c \
	format.h \
	resource.h \
	springboard.bmp \
	springboard.cpp \
	springboard.h \
	springboard.rcp \
	springboard.prc \
	Makefile

dist: springboard.prc
	-rm -fr disttemp~
	-rm -fr springboard.tar.gz
	install -d disttemp~/springboard
	cp $(DISTFILES) disttemp~/springboard/
	tar zcvf springboard.tar.gz -C disttemp~ springboard
	-rm -fr disttemp~

