1 |
# |
# |
2 |
# $Id: Makefile.skel,v 1.17 2005/12/11 12:46:24 debug Exp $ |
# $Id: Makefile.skel,v 1.27 2006/10/25 09:24:06 debug Exp $ |
3 |
# |
# |
4 |
# Makefile for GXemul src/cpus |
# Makefile for GXemul src/cpus |
5 |
# |
# |
6 |
|
|
7 |
CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) $(DINCLUDE) |
CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) $(DINCLUDE) |
8 |
|
|
9 |
OBJS=cpu_mips.o cpu_mips_coproc.o bintrans.o memory_fast_v2h.o \ |
OBJS=$(CPU_ARCHS) $(CPU_BACKENDS) |
|
$(CPU_ARCHS) $(CPU_BACKENDS) |
|
10 |
TOOLS=generate_head generate_tail $(CPU_TOOLS) |
TOOLS=generate_head generate_tail $(CPU_TOOLS) |
11 |
|
|
12 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
|
# Old bintrans: |
|
|
|
|
|
bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c |
|
|
|
|
|
|
|
24 |
############################################################################### |
############################################################################### |
25 |
|
|
26 |
cpu_alpha.o: cpu_alpha.c cpu_alpha_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_alpha.o: cpu_alpha.c cpu_alpha_instr.c cpu_dyntrans.c ../memory_rw.c \ |
111 |
|
|
112 |
############################################################################### |
############################################################################### |
113 |
|
|
114 |
|
cpu_avr32.o: cpu_avr32.c cpu_avr32_instr.c cpu_dyntrans.c ../memory_rw.c \ |
115 |
|
tmp_avr32_head.c tmp_avr32_tail.c |
116 |
|
|
117 |
|
tmp_avr32_head.c: generate_head |
118 |
|
./generate_head avr32 AVR32 > tmp_avr32_head.c |
119 |
|
|
120 |
|
tmp_avr32_tail.c: generate_tail |
121 |
|
./generate_tail avr32 AVR32 > tmp_avr32_tail.c |
122 |
|
|
123 |
|
|
124 |
|
############################################################################### |
125 |
|
|
126 |
|
cpu_rca180x.o: cpu_rca180x.c cpu_rca180x_instr.c cpu_dyntrans.c ../memory_rw.c \ |
127 |
|
tmp_rca180x_head.c tmp_rca180x_tail.c |
128 |
|
|
129 |
|
tmp_rca180x_head.c: generate_head |
130 |
|
./generate_head rca180x RCA180X > tmp_rca180x_head.c |
131 |
|
|
132 |
|
tmp_rca180x_tail.c: generate_tail |
133 |
|
./generate_tail rca180x RCA180X > tmp_rca180x_tail.c |
134 |
|
|
135 |
|
|
136 |
|
############################################################################### |
137 |
|
|
138 |
cpu_hppa.o: cpu_hppa.c cpu_hppa_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_hppa.o: cpu_hppa.c cpu_hppa_instr.c cpu_dyntrans.c ../memory_rw.c \ |
139 |
tmp_hppa_head.c tmp_hppa_tail.c |
tmp_hppa_head.c tmp_hppa_tail.c |
140 |
|
|
183 |
|
|
184 |
############################################################################### |
############################################################################### |
185 |
|
|
186 |
cpu_mips.o: cpu_mips.c cpu_mips16.c cpu_dyntrans.c memory_mips.c \ |
cpu_mips.o: cpu_mips.c cpu_dyntrans.c memory_mips.c \ |
187 |
cpu_mips_instr.c tmp_mips_head.c tmp_mips_tail.c |
cpu_mips_instr.c tmp_mips_loadstore.c tmp_mips_head.c tmp_mips_tail.c |
188 |
|
|
189 |
memory_mips.c: ../memory_rw.c memory_mips_v2p.c |
memory_mips.c: ../memory_rw.c memory_mips_v2p.c |
190 |
|
|
191 |
|
tmp_mips_loadstore.c: cpu_mips_instr_loadstore.c generate_mips_loadstore |
192 |
|
./generate_mips_loadstore > tmp_mips_loadstore.c |
193 |
|
|
194 |
tmp_mips_head.c: generate_head |
tmp_mips_head.c: generate_head |
195 |
./generate_head mips MIPS > tmp_mips_head.c |
./generate_head mips MIPS > tmp_mips_head.c |
196 |
|
|
201 |
############################################################################### |
############################################################################### |
202 |
|
|
203 |
cpu_ppc.o: cpu_ppc.c cpu_ppc_instr.c cpu_dyntrans.c memory_ppc.c \ |
cpu_ppc.o: cpu_ppc.c cpu_ppc_instr.c cpu_dyntrans.c memory_ppc.c \ |
204 |
../memory_rw.c tmp_ppc_head.c tmp_ppc_tail.c |
../memory_rw.c tmp_ppc_head.c tmp_ppc_tail.c tmp_ppc_loadstore.c |
|
|
|
|
cpu_ppc_instr.c: tmp_ppc_loadstore.c |
|
205 |
|
|
206 |
tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c generate_ppc_loadstore |
tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c generate_ppc_loadstore |
207 |
./generate_ppc_loadstore > tmp_ppc_loadstore.c |
./generate_ppc_loadstore > tmp_ppc_loadstore.c |
228 |
############################################################################### |
############################################################################### |
229 |
|
|
230 |
cpu_sparc.o: cpu_sparc.c cpu_sparc_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_sparc.o: cpu_sparc.c cpu_sparc_instr.c cpu_dyntrans.c ../memory_rw.c \ |
231 |
tmp_sparc_head.c tmp_sparc_tail.c |
tmp_sparc_head.c tmp_sparc_tail.c tmp_sparc_loadstore.c |
232 |
|
|
233 |
|
tmp_sparc_loadstore.c: cpu_sparc_instr_loadstore.c generate_sparc_loadstore |
234 |
|
./generate_sparc_loadstore > tmp_sparc_loadstore.c |
235 |
|
|
236 |
tmp_sparc_head.c: generate_head |
tmp_sparc_head.c: generate_head |
237 |
./generate_head sparc SPARC > tmp_sparc_head.c |
./generate_head sparc SPARC > tmp_sparc_head.c |
241 |
|
|
242 |
|
|
243 |
############################################################################### |
############################################################################### |
244 |
|
|
245 |
|
cpu_transputer.o: cpu_transputer.c cpu_transputer_instr.c cpu_dyntrans.c \ |
246 |
|
../memory_rw.c tmp_transputer_head.c tmp_transputer_tail.c |
247 |
|
|
248 |
|
tmp_transputer_head.c: generate_head |
249 |
|
./generate_head transputer Transputer > tmp_transputer_head.c |
250 |
|
|
251 |
|
tmp_transputer_tail.c: generate_tail |
252 |
|
./generate_tail transputer Transputer > tmp_transputer_tail.c |
253 |
|
|
254 |
|
|
255 |
|
############################################################################### |
256 |
|
|
257 |
cpu_x86.o: cpu_x86.c cpu_x86_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_x86.o: cpu_x86.c cpu_x86_instr.c cpu_dyntrans.c ../memory_rw.c \ |
258 |
memory_x86.c tmp_x86_head.c tmp_x86_tail.c |
memory_x86.c tmp_x86_head.c tmp_x86_tail.c |