3 CFLAGS=-g -Og -Wall -Wno-attributes -Wno-unused-function
4 ALT_65C02_CFLAGS=-DALT_BACKEND=1 -DVR_6502_EMU_STATIC=1
5 ALT_6800_CFLAGS=-DALT_BACKEND=1 -DUSE_PROTOTYPES -DM6800 -Isim68xx/inc/arch/m6800 -Isim68xx/inc/arch/m68xx -Isim68xx/inc/base
6 ALT_68000_CFLAGS=-DALT_BACKEND=1 -IMusashi -IMusashi/softfloat
7 ALT_6809_CFLAGS=-DALT_BACKEND=1 -IVCC
8 ALT_8086_CFLAGS=-DALT_BACKEND=1 -Ivirtualxt/lib/vxt -Ivirtualxt/lib/vxt/include
9 ALT_MIPS_CFLAGS=-DALT_BACKEND=1 -DHAVE_CONFIG_H -Iyams -Iyams/src -Wno-enum-compare
10 ALT_PDP11_CFLAGS=-DALT_BACKEND=1 -Isimh -Isimh/PDP11
11 ALT_Z80_CFLAGS=-DALT_BACKEND=1
17 6502_functional_test.ihx \
18 65C02_extended_opcodes_test.ihx \
40 emu_65c02: emu_65c02.o cpu_65c02.o
41 ${CC} ${CFLAGS} -o $@ $^
43 emu_65c02.o: cpu_65c02.h
45 cpu_65c02.o: cpu_65c02.h
47 emu_65c02_alt: emu_65c02_alt.o vrEmu6502.o
48 ${CC} ${CFLAGS} -o $@ $^
50 emu_65c02_alt.o: emu_65c02.c vrEmu6502/src/vrEmu6502.h
51 ${CC} ${CFLAGS} ${ALT_65C02_CFLAGS} -o $@ -c $<
53 vrEmu6502.o: vrEmu6502/src/vrEmu6502.c vrEmu6502/src/vrEmu6502.h
54 ${CC} ${CFLAGS} ${ALT_65C02_CFLAGS} -c $<
56 6502_functional_test.ihx: \
57 6502_65C02_functional_tests/bin_files/6502_functional_test.bin
58 ${BIN2HEX} $< __temp__.ihx
59 ./entry_point.py 0x400 __temp__.ihx $@
62 65C02_extended_opcodes_test.ihx: \
63 6502_65C02_functional_tests/bin_files/65C02_extended_opcodes_test.bin
64 ${BIN2HEX} $< __temp__.ihx
65 ./entry_point.py 0x400 __temp__.ihx $@
69 emu_6800: emu_6800.o cpu_6800.o
70 ${CC} ${CFLAGS} -o $@ $^
72 emu_6800.o: cpu_6800.h
74 cpu_6800.o: cpu_6800.h
86 ${CC} ${CFLAGS} -o $@ $^
90 sim68xx/inc/arch/m68xx/instr.h \
91 sim68xx/inc/arch/m68xx/reg.h
92 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
94 m6800_callstac.o: sim68xx/src/base/callstac.c
95 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
97 m6800_cpu.o: sim68xx/src/base/cpu.c
98 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
100 m6800_error.o: sim68xx/src/base/error.c
101 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
103 m6800_instr.o: sim68xx/src/arch/m6800/instr.c
104 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
106 m6800_reg.o: sim68xx/src/arch/m68xx/reg.c
107 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
109 m6800_symtab.o: sim68xx/src/base/symtab.c
110 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
112 m6800_opfunc.o: sim68xx/src/arch/m68xx/opfunc.c
113 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
115 m6800_optab.o: sim68xx/src/arch/m6800/optab.c
116 ${CC} ${CFLAGS} ${ALT_6800_CFLAGS} -o $@ -c $<
119 emu_68000: emu_68000.o cpu_68000.o
120 ${CC} ${CFLAGS} -o $@ $^
122 emu_68000.o: cpu_68000.h
124 cpu_68000.o: cpu_68000.h
131 ${CC} ${CFLAGS} -o $@ $^
136 ${CC} ${CFLAGS} ${ALT_68000_CFLAGS} -o $@ -c $<
138 m68kcpu.o: Musashi/m68kcpu.c Musashi/m68kfpu.c
139 ${CC} ${CFLAGS} ${ALT_68000_CFLAGS} -o $@ -c $<
141 m68kops.o: Musashi/m68kops.c
142 ${CC} ${CFLAGS} ${ALT_68000_CFLAGS} -o $@ -c $<
144 softfloat.o: Musashi/softfloat/softfloat.c
145 ${CC} ${CFLAGS} ${ALT_68000_CFLAGS} -o $@ -c $<
148 emu_6809: emu_6809.o cpu_6809.o
149 ${CC} ${CFLAGS} -o $@ $^
151 emu_6809.o: cpu_6809.h
153 cpu_6809.o: cpu_6809.h
158 ${CC} ${CFLAGS} -o $@ $^
164 ${CC} ${CFLAGS} ${ALT_6809_CFLAGS} -o $@ -c $<
166 mc6809.o: VCC/mc6809.c
167 ${CC} ${CFLAGS} ${ALT_6809_CFLAGS} -o $@ -c $<
169 basic_6809.ihx: ExBasROM.hex
172 ExBasROM.hex: ExBasRom.zip
178 wget http://searle.x10host.com/6809/$@
181 emu_8086: emu_8086.o cpu_8086.o
182 ${CC} ${CFLAGS} -o $@ $^
184 emu_8086.o: cpu_8086.h
186 cpu_8086.o: cpu_8086.h
188 emu_8086_alt: emu_8086_alt.o vxt_cpu.o
189 ${CC} ${CFLAGS} -o $@ $^
191 emu_8086_alt.o: emu_8086.c virtualxt/lib/vxt/cpu.h
192 ${CC} ${CFLAGS} ${ALT_8086_CFLAGS} -o $@ -c $<
194 vxt_cpu.o: virtualxt/lib/vxt/cpu.c virtualxt/lib/vxt/cpu.h
195 ${CC} ${CFLAGS} ${ALT_8086_CFLAGS} -o $@ -c $<
197 msbasic.ihx: msbasic.com
198 ${BIN2HEX} --offset=0x600 $< __temp__.ihx
199 ./entry_point.py 0x50:0x100 __temp__.ihx $@
203 emu_mips: emu_mips.o cpu_mips.o
204 ${CC} ${CFLAGS} -o $@ $^
206 emu_mips.o: cpu_mips.h
208 cpu_mips.o: cpu_mips.h
215 ${CC} ${CFLAGS} -o $@ $^
220 yams/src/cpu_defs.h \
224 ${CC} ${CFLAGS} ${ALT_MIPS_CFLAGS} -o $@ -c $<
226 cp0.o: yams/src/cp0.c
227 ${CC} ${CFLAGS} ${ALT_MIPS_CFLAGS} -o $@ -c $<
229 cpu.o: yams/src/cpu.c
230 ${CC} ${CFLAGS} ${ALT_MIPS_CFLAGS} -o $@ -c $<
232 misc.o: yams/src/misc.c
233 ${CC} ${CFLAGS} ${ALT_MIPS_CFLAGS} -o $@ -c $<
236 emu_pdp11: emu_pdp11.o cpu_pdp11.o
237 ${CC} ${CFLAGS} -o $@ $^
239 emu_pdp11.o: cpu_pdp11.h
241 cpu_pdp11.o: cpu_pdp11.h
248 ${CC} ${CFLAGS} -o $@ $^
252 simh/PDP11/pdp11_defs.h \
253 simh/PDP11/pdp11_cpumod.h
254 ${CC} ${CFLAGS} ${ALT_PDP11_CFLAGS} -o $@ -c $<
256 pdp11_cpu.o: simh/PDP11/pdp11_cpu.c
257 ${CC} ${CFLAGS} ${ALT_PDP11_CFLAGS} -o $@ -c $<
259 pdp11_cis.o: simh/PDP11/pdp11_cis.c
260 ${CC} ${CFLAGS} ${ALT_PDP11_CFLAGS} -o $@ -c $<
262 pdp11_fp.o: simh/PDP11/pdp11_fp.c
263 ${CC} ${CFLAGS} ${ALT_PDP11_CFLAGS} -o $@ -c $<
265 basic_pdp11.ihx: doc/DEC-11-AJPB-PB.ptap
266 ./absolute_loader.py $< $@
269 emu_z80: emu_z80.o cpu_z80.o
270 ${CC} ${CFLAGS} -o $@ $^
276 emu_z80_alt: emu_z80_alt.o z80.o
277 ${CC} ${CFLAGS} -o $@ $^
279 emu_z80_alt.o: emu_z80.c z80/z80.h
280 ${CC} ${CFLAGS} ${ALT_Z80_CFLAGS} -o $@ -c $<
282 z80.o: z80/z80.c z80/z80.h
283 ${CC} ${CFLAGS} ${ALT_Z80_CFLAGS} -c $<
285 zexall.ihx: ZEXALL/zexall.com
286 ${BIN2HEX} --offset=0x100 $< __temp__.ihx
287 ./entry_point.py 0x100 __temp__.ihx $@
290 zexdoc.ihx: ZEXALL/zexdoc.com
291 ${BIN2HEX} --offset=0x100 $< __temp__.ihx
292 ./entry_point.py 0x100 __temp__.ihx $@