-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
121 lines (90 loc) · 1.71 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
ASM = X6809
.src.mot:
$(ASM) $*.src,$*.mot,$*.lst,$*.crf,$*.map
.mot.bin:
mot2bin $*.mot $*.bin
ALL: fbasic30.rom boot_bas.rom boot_dos.rom subsys_c.rom \
initiate.rom subsys_a.rom subsys_b.rom subsyscg.rom kanji.rom \
kanji2.rom dicrom.rom extsub.rom
CLEAN:
del *.mot
del *.lst
del *.crf
del *.map
del *.bin
ALLCLEAN:
del *.rom
del *.mot
del *.lst
del *.crf
del *.map
del *.bin
#
# Make F-BASIC rom file
#
fbasic30.rom : basic.bin
bincut $? $@ 8000 fbff
#
# Make BASIC mode boot loader
#
boot_bas.mot : bootrom.src
$(ASM) bootrom.src,$*.mot,$*.lst,$*.crf,$*.map /DIPLENT=256
boot_bas.rom : boot_bas.bin
bincut boot_bas.bin boot_bas.rom fe00 ffff
#
# Make DOS mode boot loader
#
boot_dos.mot : bootrom.src
$(ASM) bootrom.src,$*.mot,$*.lst,$*.crf,$*.map /DIPLENT=768
boot_dos.rom : boot_dos.bin
bincut boot_dos.bin boot_dos.rom fe00 ffff
#
# Genarate KANJI.ROM file
#
kanji.rom:
krom.exe
#
# Make Subsystem monitor
#
subsys_c.rom : submon.bin font1a
copy font1a /b + submon.bin /b subsys_c.rom /b
submon.bin : subrom.bin
bincut subrom.bin submon.bin e000 ffff
#
# Make initiator
#
initiate2.bin : initiate.bin
bincut initiate.bin initiate2.bin 6000 6fff
copy /Y initiate2.bin initiate.bin
initiate.rom : initiate2.bin boot_bas.rom boot_dos.rom
seven2av
#
# Generate subsys_a.rom file
#
subsys_a.rom : subsys_c.rom
seven2av
#
# Generate subsys_b.rom file
#
subsys_b.rom : subsys_c.rom
seven2av
#
# Generate subsyscg.rom file
#
subsyscg.rom : subsys_c.rom
seven2av
#
# Generate dummy kanji2.rom file
#
kanji2.rom :
dmygen kanji2.rom 20000
#
# Generate dummy dicrom.rom file
#
dicrom.rom :
dmygen dicrom.rom 40000
#
# Generate dummy extsub.rom file
#
extsub.rom :
dmygen extsub.rom c000