chiark / gitweb /
move %-full.hex pattern rule to pic.make
[trains.git] / pic.make
1
2 all:            $(TARGETS)
3
4 o=>$@.new && mv -f $@.new $@
5
6 LINK=           gplink -o $@ $^
7
8 %-full.hex:     %.o config.o
9                 $(LINK)
10
11 %.hex:          %.o
12                 $(LINK)
13
14 %.o:            %.asm
15                 gpasm -p 18f458 -c $<
16
17 .PRECIOUS:      %.o
18
19 pic-clean:
20                 -rm -f -- *~ *.new
21                 -rm -f *.hex *.cod *.lst *.o