1 |
# |
# |
2 |
# $Id: Makefile.skel,v 1.17 2005/12/11 12:46:24 debug Exp $ |
# $Id: Makefile.skel,v 1.30 2007/02/11 10:47:30 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_hppa.o: cpu_hppa.c cpu_hppa_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_rca180x.o: cpu_rca180x.c cpu_rca180x_instr.c cpu_dyntrans.c ../memory_rw.c \ |
115 |
tmp_hppa_head.c tmp_hppa_tail.c |
tmp_rca180x_head.c tmp_rca180x_tail.c |
|
|
|
|
tmp_hppa_head.c: generate_head |
|
|
./generate_head hppa HPPA > tmp_hppa_head.c |
|
|
|
|
|
tmp_hppa_tail.c: generate_tail |
|
|
./generate_tail hppa HPPA > tmp_hppa_tail.c |
|
|
|
|
|
|
|
|
############################################################################### |
|
|
|
|
|
cpu_i960.o: cpu_i960.c cpu_i960_instr.c cpu_dyntrans.c ../memory_rw.c \ |
|
|
tmp_i960_head.c tmp_i960_tail.c |
|
116 |
|
|
117 |
tmp_i960_head.c: generate_head |
tmp_rca180x_head.c: generate_head |
118 |
./generate_head i960 i960 > tmp_i960_head.c |
./generate_head rca180x RCA180X > tmp_rca180x_head.c |
119 |
|
|
120 |
tmp_i960_tail.c: generate_tail |
tmp_rca180x_tail.c: generate_tail |
121 |
./generate_tail i960 i960 > tmp_i960_tail.c |
./generate_tail rca180x RCA180X > tmp_rca180x_tail.c |
|
|
|
|
|
|
|
############################################################################### |
|
|
|
|
|
cpu_ia64.o: cpu_ia64.c cpu_ia64_instr.c cpu_dyntrans.c ../memory_rw.c \ |
|
|
tmp_ia64_head.c tmp_ia64_tail.c |
|
|
|
|
|
tmp_ia64_head.c: generate_head |
|
|
./generate_head ia64 IA64 > tmp_ia64_head.c |
|
|
|
|
|
tmp_ia64_tail.c: generate_tail |
|
|
./generate_tail ia64 IA64 > tmp_ia64_tail.c |
|
122 |
|
|
123 |
|
|
124 |
############################################################################### |
############################################################################### |
135 |
|
|
136 |
############################################################################### |
############################################################################### |
137 |
|
|
138 |
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 \ |
139 |
cpu_mips_instr.c tmp_mips_head.c tmp_mips_tail.c |
cpu_mips_instr.c tmp_mips_loadstore.c tmp_mips_loadstore_multi.c \ |
140 |
|
tmp_mips_head.c tmp_mips_tail.c |
141 |
|
|
142 |
memory_mips.c: ../memory_rw.c memory_mips_v2p.c |
memory_mips.c: ../memory_rw.c memory_mips_v2p.c |
143 |
|
|
144 |
|
tmp_mips_loadstore.c: cpu_mips_instr_loadstore.c generate_mips_loadstore |
145 |
|
./generate_mips_loadstore > tmp_mips_loadstore.c |
146 |
|
|
147 |
|
tmp_mips_loadstore_multi.c: generate_mips_loadstore_multi |
148 |
|
./generate_mips_loadstore_multi > tmp_mips_loadstore_multi.c |
149 |
|
|
150 |
tmp_mips_head.c: generate_head |
tmp_mips_head.c: generate_head |
151 |
./generate_head mips MIPS > tmp_mips_head.c |
./generate_head mips MIPS > tmp_mips_head.c |
152 |
|
|
157 |
############################################################################### |
############################################################################### |
158 |
|
|
159 |
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 \ |
160 |
../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 |
|
161 |
|
|
162 |
tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c generate_ppc_loadstore |
tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c generate_ppc_loadstore |
163 |
./generate_ppc_loadstore > tmp_ppc_loadstore.c |
./generate_ppc_loadstore > tmp_ppc_loadstore.c |
184 |
############################################################################### |
############################################################################### |
185 |
|
|
186 |
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 \ |
187 |
tmp_sparc_head.c tmp_sparc_tail.c |
tmp_sparc_head.c tmp_sparc_tail.c tmp_sparc_loadstore.c |
188 |
|
|
189 |
|
tmp_sparc_loadstore.c: cpu_sparc_instr_loadstore.c generate_sparc_loadstore |
190 |
|
./generate_sparc_loadstore > tmp_sparc_loadstore.c |
191 |
|
|
192 |
tmp_sparc_head.c: generate_head |
tmp_sparc_head.c: generate_head |
193 |
./generate_head sparc SPARC > tmp_sparc_head.c |
./generate_head sparc SPARC > tmp_sparc_head.c |
198 |
|
|
199 |
############################################################################### |
############################################################################### |
200 |
|
|
201 |
cpu_x86.o: cpu_x86.c cpu_x86_instr.c cpu_dyntrans.c ../memory_rw.c \ |
cpu_transputer.o: cpu_transputer.c cpu_transputer_instr.c cpu_dyntrans.c \ |
202 |
memory_x86.c tmp_x86_head.c tmp_x86_tail.c |
../memory_rw.c tmp_transputer_head.c tmp_transputer_tail.c |
203 |
|
|
204 |
tmp_x86_head.c: generate_head |
tmp_transputer_head.c: generate_head |
205 |
./generate_head x86 x86 > tmp_x86_head.c |
./generate_head transputer Transputer > tmp_transputer_head.c |
206 |
|
|
207 |
tmp_x86_tail.c: generate_tail |
tmp_transputer_tail.c: generate_tail |
208 |
./generate_tail x86 x86 > tmp_x86_tail.c |
./generate_tail transputer Transputer > tmp_transputer_tail.c |
209 |
|
|
210 |
|
|
211 |
############################################################################### |
############################################################################### |