chiark / gitweb /
nice graph colourings
[trains.git] / iwjpictest / Makefile
1 TARGETS=        config.hex $(INSN_TARGETS)
2
3 INSN_TARGETS=   insn-aliases.inc \
4                 insn-opcode.txt insn-desc.txt insn-official.txt \
5                 insn-opcode.ps insn-desc.ps insn-official.ps insn-check.txt
6
7 PROGRAMS=       flasher copybits serialloop harness
8
9 INCLUDES=       insn-aliases.inc  onecopybit.inc  test.inc  clockvaries.inc \
10                 ../iwjpictest/syncwrite.inc
11
12 CEBPIC=../cebpic/
13
14 include ../common.make
15
16 PROGRAM_HEXES=  $(addsuffix .hex, $(PROGRAMS)) \
17                 $(addsuffix +withcfg.hex, $(PROGRAMS))
18
19 all:            $(TARGETS) $(PROGRAM_HEXES)
20
21 include ../pic.make
22
23 %+withcfg.hex:  $(HEXMERGER) %.hex config.hex
24                 $(MERGEHEX)
25
26 %.hex:          %.o $(LIBS) $(DEFLIBS)
27                 $(LINK)
28
29 harness.hex:    harness.o syncwrite.o syncwritehex.o $(LIBS)
30                 $(LINK)
31
32 clean:          pic-clean
33                 rm -f $(INSN_TARGETS)
34
35 insn-aliases.inc:       insn-aliases.inc-gen
36                 ./$< --macros $o
37
38 insn-%.txt:     insn-aliases.inc-gen
39                 ./$< --by-$* $o
40
41 insn-check.txt: insn-makecheck insn-aliases.inc
42                 ./$^ $o
43
44 insn-%.ps:      insn-%.txt Makefile
45                 atp -T A4 -B -f Courier7.4 <$< $o
46
47 test1.o test2.o:        test.inc
48 test.hex:               test1.o test2.o
49                         $(LINK)
50
51 copybits.o serialloop.o:        onecopybit.inc