#
# $ProjectVersion: 0.56 $
#

COMPILER=	picforth.fs
LIBRARIES=	picisr.fs libfetch.fs libstore.fs picflash.fs piceeprom.fs

PROGS=		booster.hex example.hex dcc2.hex generator.hex

# all:	${PROGS}
all:	generator.asm
.PHONY:	all

.SUFFIXES: .fs .hex .asm .dump

.fs.hex: ${COMPILER} ${LIBRARIES}
	gforth picforth.fs -e 'include $< final-dump $@' | sort -o ${<:fs=map}

.hex.asm:
	gpdasm $< > $@

.asm.dump:
	less $<

# $Format: "RELEASEVERSION = $ReleaseVersion$"$
RELEASEVERSION = 0.4

release:
	prcs rekey
	$(MAKE) release2

release2:
	mkdir picforth-${RELEASEVERSION}
	install -m 644 `cat MANIFEST` picforth-${RELEASEVERSION}
	tar zcvf picforth-${RELEASEVERSION}.tar.gz picforth-${RELEASEVERSION}
	rm -rf picforth-${RELEASEVERSION}
