chiark
/
gitweb
/
~ijackson
/
trains.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new PROGRAMS variable makes -full things automatically
[trains.git]
/
pic.make
1
2
PROGRAM_HEXES= $(addsuffix .hex, $(PROGRAMS)) \
3
$(addsuffix -full.hex, $(PROGRAMS))
4
5
all: $(TARGETS) $(PROGRAM_HEXES)
6
7
o=>$@.new && mv -f $@.new $@
8
9
LINK= gplink -o $@ $^
10
11
%-full.hex: %.o config.o
12
$(LINK)
13
14
%.hex: %.o
15
$(LINK)
16
17
%.o: %.asm
18
gpasm -p 18f458 -c $<
19
20
.PRECIOUS: %.o
21
22
pic-clean:
23
-rm -f -- *~ *.new
24
-rm -f *.hex *.cod *.lst *.o