-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
60 lines (44 loc) · 1.6 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
DEPDIR = .deps
OUTPUTS = \
out/TOS6.asm \
out/WIPL.asm \
out/load6.asm \
out/load7.asm \
out/bootstrap.asm \
out/autoload.asm \
out/DIAG/f1.asm \
out/DIAG/f2.asm \
out/DIAG/f3.asm \
out/DIAG/f4.asm
all: $(OUTPUTS)
DISASSEMBLE = python3 ono -o $@ --depfile $(DEPDIR)/$(@:%=%.d) -i $<
out/DIAG/f1.asm: roms/Diag_F1_Rev_1.0.BIN
$(DISASSEMBLE) -s 0x8000 \
-a roms/Diag_F1_Rev_1.0.comments --script disassemble_f1.py
out/DIAG/f2.asm: roms/Diag_F2_Rev_1.0.BIN
$(DISASSEMBLE) -s 0x8800 \
--script disassemble_f2.py
out/DIAG/f3.asm: roms/Diag_F3_Rev_1.0.BIN
$(DISASSEMBLE) -s 0x9000 \
-a roms/Diag_F3_Rev_1.0.comments --script disassemble_f3.py
out/DIAG/f4.asm: roms/Diag_F4_1133CMD.BIN
$(DISASSEMBLE) -s 0x9800 \
-a roms/Diag_F4_1133CMD.comments --script disassemble_f4.py
out/bootstrap.asm: roms/bootstrap_unscrambled.bin
$(DISASSEMBLE) -s 0xfc00 --script disassemble_bootstrap.py
out/autoload.asm: roms/DSK-MM1702A
$(DISASSEMBLE) -s 0xef00
out/TOS6.asm: TOS6/TOS6.bin TOS6/TOS6.annotations TOS6/TOS6.comments
$(DISASSEMBLE) -t wecb -a TOS6/TOS6.annotations -a TOS6/TOS6.comments
out/WIPL.asm: WIPL/WIPL.bin
$(DISASSEMBLE) -s 0x100 -a WIPL/WIPL.annotations -a WIPL/WIPL.comments
out/load6.asm: LOAD/load6.bin
$(DISASSEMBLE) -t wecb -a LOAD/load6.annotations -a LOAD/load6.comments \
--script LOAD/script6.py
out/load7.asm: LOAD/load7.bin
$(DISASSEMBLE) -t wecb -a LOAD/load7.annotations -a LOAD/load7.comments \
--script LOAD/script7.py
DEPFILES := $(OUTPUTS:%=$(DEPDIR)/%.d)
$(OUTPUTS): % : $(DEPDIR)/%.d # Force outputs to depend on the depfiles
$(DEPFILES):
include $(wildcard $(DEPFILES))