CC65_HOME=/usr/local/lib/cc65
FRANNY=/usr/local/franny/bin/franny

all:	hiworld.atr

clean:
	-rm hiworld.atr
	-rm hiworld.xex
	-rm hiworld.o

hiworld.xex:	hiworld.c
	cl65 -t atari hiworld.c
	mv hiworld hiworld.xex

hiworld.atr:	hiworld.atr.in hiworld.xex
	cp hiworld.atr.in hiworld.atr
	${FRANNY} -A -i hiworld.xex -o HIWORLD.AR0 hiworld.atr

run-atr:	hiworld.atr
	atari800 -nobasic hiworld.atr

run-exe:	hiworld.xex
	atari800 -nobasic -run hiworld.xex
