chiark / gitweb /
do not compile nmra-stream as it does not cope with 32MHz clock
[trains.git] / cebpic / Makefile
1
2 CEBPIC=         ./
3 PICNOS=         0 1 2
4
5 PROGRAMS=       send-serial nmra-stream,slow
6
7 # These programs haven't been updated to cope with
8 # master and slave pics having different clock speeds:
9 #               i2c-test i2c-test,slow tblrd_test
10
11 ROUTINES=       routines-led
12 LIBS=           routines.lib                            
13
14 INCLUDES=       common.inc ../iwjpictest/clockvaries.inc
15
16 include manypics.make
17
18 routines.lib:   $(addsuffix .o, $(ROUTINES))
19                 rm -f $@.new
20                 gplib -c $@.new $^
21                 mv -f $@.new $@
22
23 morsepanic.hex morsepanic-withcfg.hex: morsepanic.o morse-auto.o
24 i2c-test-reply.hex: i2c-test-reply.o morse-auto.o
25 i2c-test-reply,slow.hex: i2c-test-reply,slow.o morse-auto.o
26
27 %,slow.o:       %.asm
28                 $(ASSEMBLE) -D SLOW_VERSION -c -o $@ $<
29
30 clean:          manypic-clean
31                 rm -f routines.lib