CC = /usr/hitech/bin/picl
CFILES = aprstracker.c
# serial.c

all: programmermenu tracker

tracker:
	${CC} ${CFILES} -ASMLIST -16F628 -O
	mv aprstracker.hex aprstracker-16f628.hex
#	${CC} ${CFILES} -16F627 -O
#	mv aprstracker.hex aprstracker-16f627.hex
#	${CC} ${CFILES} -16F84 -O
#	todos <aprstracker.hex >aprstracker.HEX
#	todos <aprstracker-16f627.hex >aprstracker-16f627.HEX
	todos <aprstracker-16f628.hex >aprstracker-16f628.HEX

programmermenu:
	diet gcc -Wall -Os atprogrammenu.c -o atprogrammenu

distclean:
	rm -f *.obj *.dep *.lst *.cod *.cof *.sym *.rlf

clean: distclean
	rm -f *.hex *.HEX atprogrammenu
