Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
 
2
# make file for B1601.prj -- borland version
3
# BIOS per board 65C816 B16/01
4
 
5
# Macro definitions
6
 
7
ASM=X65816.EXE
8
LINK=link658.exe
9
HFORM=hexform.exe -FILL(00)
10
TEMP=C:\ADC\Tools\temp
11
AFLAGSCMN=-q -ns -ld,lst
12
AFLAGSF8=-q -ns -v_BANKF8_ -ld,lst\F8
13
AFLAGSF9=-q -ns -v_BANKF9_ -ld,lst\F9
14
AFLAGSFA=-q -ns -v_BANKFA_ -ld,lst\FA
15
AFLAGSFB=-q -ns -v_BANKFB_ -ld,lst\FB
16
AFLAGSFC=-q -ns -v_BANKFC_ -ld,lst\FC
17
AFLAGSFD=-q -ns -v_BANKFD_ -ld,lst\FD
18
AFLAGSFE=-q -ns -v_BANKFE_ -ld,lst\FE
19
AFLAGSFF=-q -ns -v_BANKFF_ -ld,lst\FF
20
 
21
 
22
 
23
# target ROM: 512 Kb flash rom F80000 - FFFFFF
24
TGTROM = bin\rom.bin
25
 
26
########################################
27
 
28
# dipendenze file HEX dai files OBJ
29
F8DEP =	obj\F8\start.obj obj\F8\ata.obj obj\F8\lcd.obj obj\F8\reset.obj \
30
	obj\F8\intp.obj obj\F8\fpuemu.obj obj\F8\systble.obj obj\F8\fdc.obj \
31
	obj\F8\vdc.obj obj\F8\bios.obj obj\F8\vprint.obj obj\F8\rtc.obj \
32
	obj\F8\fpu.obj obj\F8\sp.obj obj\F8\sp2.obj obj\F8\usbdsk.obj
33
 
34
# F9.hex deps.
35
F9DEP =	obj\F9\start.obj obj\F9\fscbm.obj obj\F9\biosmem.obj  \
36
	obj\F9\fdir.obj obj\F9\sysf9.obj obj\F9\fsint.obj obj\F9\fsstart.obj \
37
	obj\F9\fatdir.obj obj\F9\fatsys.obj obj\F9\utils.obj obj\F9\toscmd.obj
38
 
39
# FA.hex deps.
40
FADEP =	obj\FA\slib.obj obj\FA\getopt.obj obj\FA\string.obj obj\FA\printf.obj
41
 
42
# FB.hex deps.
43
FBDEP =	obj\FB\dummy.obj
44
 
45
# FC.hex deps.
46
FCDEP =	obj\FC\dummy.obj
47
 
48
# FD.hex deps.
49
FDDEP =	obj\FD\qedt.obj
50
 
51
# FE.hex deps.
52
#FEDEP =	obj\FE\main.obj obj\FE\float.obj obj\FE\kcbm.obj obj\FE\pcode.obj \
53
#	obj\FE\pcstd.obj obj\FE\pcerr.obj obj\FE\pcc.obj
54
 
55
FEDEP =	obj\FE\main.obj obj\FE\float.obj obj\FE\kcbm.obj obj\FE\pcode.obj \
56
	obj\FE\pcstd.obj obj\FE\pcerr.obj
57
 
58
# FF.hex deps.
59
FFDEP =	obj\FF\font.obj obj\FF\monitor.obj obj\FF\mond.obj obj\FF\masmx.obj
60
 
61
 
62
# Common DEPS
63
CMNDEP	=
64
 
65
DEPS =	$(F8DEP) \
66
	$(F9DEP) \
67
	$(FADEP) \
68
	$(FBDEP) \
69
	$(FCDEP) \
70
	$(FDDEP) \
71
	$(FEDEP) \
72
	$(FFDEP) \
73
	$(CMNDEP)
74
 
75
########################################
76
 
77
# target
78
all: dir rombin
79
 
80
# Dependency rules
81
dir:
82
	-@if not exist "obj" mkdir "obj"
83
	-@if not exist "obj\cmn" mkdir "obj\cmn"
84
	-@if not exist "obj\F8" mkdir "obj\F8"
85
	-@if not exist "obj\F9" mkdir "obj\F9"
86
	-@if not exist "obj\FA" mkdir "obj\FA"
87
	-@if not exist "obj\FB" mkdir "obj\FB"
88
	-@if not exist "obj\FC" mkdir "obj\FC"
89
	-@if not exist "obj\FD" mkdir "obj\FD"
90
	-@if not exist "obj\FE" mkdir "obj\FE"
91
	-@if not exist "obj\FF" mkdir "obj\FF"
92
	-@if not exist "bin" mkdir "bin"
93
	-@if not exist "bin\hex" mkdir "bin\hex"
94
	-@if not exist "lst" mkdir "lst"
95
	-@if not exist "lst\F8" mkdir "lst\F8"
96
	-@if not exist "lst\F9" mkdir "lst\F9"
97
	-@if not exist "lst\FA" mkdir "lst\FA"
98
	-@if not exist "lst\FB" mkdir "lst\FB"
99
	-@if not exist "lst\FC" mkdir "lst\FC"
100
	-@if not exist "lst\FD" mkdir "lst\FD"
101
	-@if not exist "lst\FE" mkdir "lst\FE"
102
	-@if not exist "lst\FF" mkdir "lst\FF"
103
 
104
 
105
rombin: $(TGTROM)
106
 
107
bin\rom.bin: bin\hex\b1601.s28
108
	$(HFORM) bin\rom.bin = bin\hex\b1601.s28 -RANGE(F80000, FFFFFF) -FILL(EA)
109
 
110
########################################
111
 
112
bin\hex\b1601.s28: $(DEPS) link.txt
113
	$(LINK) link.txt
114
 
115
########################################
116
 
117
# assemblaggio moduli comuni
118
 
119
 
120
########################################
121
 
122
# assemblaggio moduli per F8.HEX
123
obj\F8\start.obj: src\F8\start.asm inc\global.inc
124
	$(ASM) $(AFLAGSF8) src\F8\start.asm obj\F8\start.obj
125
 
126
obj\F8\systble.obj: src\F8\systble.asm inc\global.inc
127
	$(ASM) $(AFLAGSF8) src\F8\systble.asm obj\F8\systble.obj
128
 
129
obj\F8\bios.obj: src\F8\bios.asm inc\global.inc
130
	$(ASM) $(AFLAGSF8) src\F8\bios.asm obj\F8\bios.obj
131
 
132
obj\F8\usbdsk.obj: src\F8\usbdsk.asm inc\global.inc inc\dirp00.inc inc\chips.inc
133
	$(ASM) $(AFLAGSF8) src\F8\usbdsk.asm obj\F8\usbdsk.obj
134
 
135
obj\F8\sp.obj: src\F8\sp.asm inc\global.inc inc\dirp00.inc inc\macro.inc inc\sp.inc
136
	$(ASM) $(AFLAGSF8) src\F8\sp.asm obj\F8\sp.obj
137
 
138
obj\F8\sp2.obj: src\F8\sp2.asm inc\global.inc inc\dirp05.inc inc\macro.inc
139
	$(ASM) $(AFLAGSF8) src\F8\sp2.asm obj\F8\sp2.obj
140
 
141
obj\F8\lcd.obj: src\F8\lcd.asm inc\global.inc
142
	$(ASM) $(AFLAGSF8) src\F8\lcd.asm obj\F8\lcd.obj
143
 
144
obj\F8\reset.obj: src\F8\reset.asm inc\global.inc
145
	$(ASM) $(AFLAGSF8) src\F8\reset.asm obj\F8\reset.obj
146
 
147
obj\F8\vprint.obj: src\F8\vprint.asm inc\global.inc
148
	$(ASM) $(AFLAGSF8) src\F8\vprint.asm obj\F8\vprint.obj
149
 
150
obj\F8\intp.obj: src\F8\intp.asm inc\global.inc
151
	$(ASM) $(AFLAGSF8) src\F8\intp.asm obj\F8\intp.obj
152
 
153
obj\F8\fpuemu.obj: src\F8\fpuemu.asm inc\global.inc
154
	$(ASM) $(AFLAGSF8) src\F8\fpuemu.asm obj\F8\fpuemu.obj
155
 
156
obj\F8\fpu.obj: src\F8\fpu.asm inc\global.inc inc\dpfpu.inc
157
	$(ASM) $(AFLAGSF8) src\F8\fpu.asm obj\F8\fpu.obj
158
 
159
obj\F8\ata.obj: src\F8\ata.asm inc\global.inc
160
	$(ASM) $(AFLAGSF8) src\F8\ata.asm obj\F8\ata.obj
161
 
162
obj\F8\fdc.obj: src\F8\fdc.asm inc\global.inc
163
	$(ASM) $(AFLAGSF8) src\F8\fdc.asm obj\F8\fdc.obj
164
 
165
obj\F8\vdc.obj: src\F8\vdc.asm inc\global.inc
166
	$(ASM) $(AFLAGSF8) src\F8\vdc.asm obj\F8\vdc.obj
167
 
168
obj\F8\rtc.obj: src\F8\rtc.asm inc\global.inc
169
	$(ASM) $(AFLAGSF8) src\F8\rtc.asm obj\F8\rtc.obj
170
 
171
########################################
172
 
173
# assemblaggio moduli per F9.HEX
174
 
175
obj\F9\start.obj: src\F9\start.asm inc\global.inc
176
	$(ASM) $(AFLAGSF9) src\F9\start.asm obj\F9\start.obj
177
 
178
obj\F9\fsint.obj: src\F9\fsint.asm inc\global.inc src\F9\fstmp.inc
179
	$(ASM) $(AFLAGSF9) src\F9\fsint.asm obj\F9\fsint.obj
180
 
181
obj\F9\fsstart.obj: src\F9\fsstart.asm inc\global.inc inc\fat.inc
182
	$(ASM) $(AFLAGSF9) src\F9\fsstart.asm obj\F9\fsstart.obj
183
 
184
obj\F9\toscmd.obj: src\F9\toscmd.asm inc\global.inc src\F9\fstmp.inc
185
	$(ASM) $(AFLAGSF9) src\F9\toscmd.asm obj\F9\toscmd.obj
186
 
187
obj\F9\fatdir.obj: src\F9\fatdir.asm inc\global.inc
188
	$(ASM) $(AFLAGSF9) src\F9\fatdir.asm obj\F9\fatdir.obj
189
 
190
obj\F9\fatsys.obj: src\F9\fatsys.asm inc\global.inc
191
	$(ASM) $(AFLAGSF9) src\F9\fatsys.asm obj\F9\fatsys.obj
192
 
193
obj\F9\utils.obj: src\F9\utils.asm inc\global.inc
194
	$(ASM) $(AFLAGSF9) src\F9\utils.asm obj\F9\utils.obj
195
 
196
obj\F9\fscbm.obj: src\F9\fscbm.asm inc\global.inc
197
	$(ASM) $(AFLAGSF9) src\F9\fscbm.asm obj\F9\fscbm.obj
198
 
199
obj\F9\sysf9.obj: src\F9\sysf9.asm inc\global.inc
200
	$(ASM) $(AFLAGSF9) src\F9\sysf9.asm obj\F9\sysf9.obj
201
 
202
obj\F9\biosmem.obj: src\F9\biosmem.asm inc\global.inc
203
	$(ASM) $(AFLAGSF9) src\F9\biosmem.asm obj\F9\biosmem.obj
204
 
205
obj\F9\fdir.obj: src\F9\fdir.asm inc\global.inc
206
	$(ASM) $(AFLAGSF9) src\F9\fdir.asm obj\F9\fdir.obj
207
 
208
########################################
209
 
210
# assemblaggio moduli per FA.HEX
211
obj\FA\slib.obj: src\FA\slib.asm inc\global.inc
212
	$(ASM) $(AFLAGSFA) src\FA\slib.asm obj\FA\slib.obj
213
obj\FA\getopt.obj: src\FA\getopt.asm inc\global.inc
214
	$(ASM) $(AFLAGSFA) src\FA\getopt.asm obj\FA\getopt.obj
215
obj\FA\string.obj: src\FA\string.asm inc\global.inc
216
	$(ASM) $(AFLAGSFA) src\FA\string.asm obj\FA\string.obj
217
obj\FA\printf.obj: src\FA\printf.asm inc\global.inc
218
	$(ASM) $(AFLAGSFA) src\FA\printf.asm obj\FA\printf.obj
219
 
220
########################################
221
 
222
# assemblaggio moduli per FB.HEX
223
obj\FB\dummy.obj: src\FB\dummy.asm inc\global.inc
224
	$(ASM) $(AFLAGSFB) src\FB\dummy.asm obj\FB\dummy.obj
225
 
226
########################################
227
 
228
# assemblaggio moduli per FC.HEX
229
obj\FC\dummy.obj: src\FC\dummy.asm inc\global.inc
230
	$(ASM) $(AFLAGSFC) src\FC\dummy.asm obj\FC\dummy.obj
231
 
232
########################################
233
 
234
# assemblaggio moduli per FD.HEX
235
obj\FD\qedt.obj: src\FD\qedt.asm inc\global.inc
236
	$(ASM) $(AFLAGSFD) src\FD\qedt.asm obj\FD\qedt.obj
237
 
238
########################################
239
 
240
# assemblaggio moduli per FE.HEX
241
obj\FE\main.obj: src\FE\main.asm inc\global.inc
242
	$(ASM) $(AFLAGSFE) src\FE\main.asm obj\FE\main.obj
243
 
244
obj\FE\float.obj: src\FE\float.asm inc\global.inc
245
	$(ASM) $(AFLAGSFE) src\FE\float.asm obj\FE\float.obj
246
 
247
obj\FE\pcode.obj: src\FE\pcode.asm inc\global.inc
248
	$(ASM) $(AFLAGSFE) src\FE\pcode.asm obj\FE\pcode.obj
249
 
250
obj\FE\pcstd.obj: src\FE\pcstd.asm inc\global.inc
251
	$(ASM) $(AFLAGSFE) src\FE\pcstd.asm obj\FE\pcstd.obj
252
 
253
obj\FE\pcerr.obj: src\FE\pcerr.asm inc\global.inc
254
	$(ASM) $(AFLAGSFE) src\FE\pcerr.asm obj\FE\pcerr.obj
255
 
256
#obj\FE\pcc.obj: src\FE\pcc.asm inc\global.inc
257
#	$(ASM) $(AFLAGSFE) src\FE\pcc.asm obj\FE\pcc.obj
258
 
259
obj\FE\kcbm.obj: src\FE\kcbm.asm inc\global.inc
260
	$(ASM) $(AFLAGSFE) src\FE\kcbm.asm obj\FE\kcbm.obj
261
 
262
 
263
########################################
264
 
265
# assemblaggio moduli per FF.HEX
266
obj\FF\monitor.obj: src\FF\monitor.asm inc\global.inc
267
	$(ASM) $(AFLAGSFF) src\FF\monitor.asm obj\FF\monitor.obj
268
 
269
obj\FF\masmx.obj: src\FF\masmx.asm inc\global.inc
270
	$(ASM) $(AFLAGSFF) src\FF\masmx.asm obj\FF\masmx.obj
271
 
272
obj\FF\mond.obj: src\FF\mond.asm inc\global.inc
273
	$(ASM) $(AFLAGSFF) src\FF\mond.asm obj\FF\mond.obj
274
 
275
obj\FF\font.obj: src\FF\font.asm inc\global.inc
276
	$(ASM) $(AFLAGSFF) src\FF\font.asm obj\FF\font.obj