1 # recommended programming order
3 # first time: erase, write FOO-entire0.hex
4 # subsequently if only FOO.asm changed: update FOO.hex
6 # first time: for each individually erase, write perpicNUM.hex
7 # then for all update FOO.hex
8 # subsequently: for all update FOO.hex
9 # other possibilities are not ruled out
11 # filename conventions - contents of hex files
12 # FOO.hex FOO.o (only)
13 # FOO-withcfg.hex FOO.o config.o
14 # FOO-entire0.hex FOO.o idlocs0.o config.o
15 # perpicNUMBER.hex idlocsNUMBER.o config.o
17 #ASFLAGS= -Dmclock=20000 -Dsclock=20000
18 ASFLAGS= -Dmclock=20000 -Dsclock=5000
20 LINK= gplink -m -o $@ $^
21 ASSEMBLE= gpasm -p 18f458 $(ASFLAGS)
23 %.o: %.asm $(INCLUDES)
30 -rm -f -- *~ *.new *.tmp
31 -rm -f *.hex *.cod *.lst *.o *.map