]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/Makefile.in
sim: sim-stop/sim-reason/sim-reg: move to common obj list
[thirdparty/binutils-gdb.git] / sim / mips / Makefile.in
1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
3
4 SHELL = @SHELL@
5
6 ## COMMON_PRE_CONFIG_FRAG
7
8 srcdir=@srcdir@
9 srcroot=$(srcdir)/../../
10
11 # Object files created by various simulator generators.
12
13
14 SIM_IGEN_OBJ = \
15 support.o \
16 itable.o \
17 semantics.o \
18 idecode.o \
19 icache.o \
20 @mips_igen_engine@ \
21 irun.o \
22
23
24 SIM_M16_OBJ = \
25 m16_support.o \
26 m16_semantics.o \
27 m16_idecode.o \
28 m16_icache.o \
29 \
30 m32_support.o \
31 m32_semantics.o \
32 m32_idecode.o \
33 m32_icache.o \
34 \
35 itable.o \
36 m16run.o \
37
38 SIM_MICROMIPS_OBJ = \
39 micromips16_support.o \
40 micromips16_semantics.o \
41 micromips16_idecode.o \
42 micromips16_icache.o \
43 \
44 micromips32_support.o \
45 micromips32_semantics.o \
46 micromips32_idecode.o \
47 micromips32_icache.o \
48 \
49 micromips_m32_support.o \
50 micromips_m32_semantics.o \
51 micromips_m32_idecode.o \
52 micromips_m32_icache.o \
53 \
54 itable.o \
55 micromipsrun.o \
56
57
58 SIM_MULTI_OBJ = @sim_multi_obj@ \
59 itable.o \
60 multi-run.o \
61
62 MIPS_EXTRA_LIBS = @mips_extra_libs@
63
64 SIM_OBJS = \
65 interp.o \
66 $(SIM_@sim_gen@_OBJ) \
67 $(SIM_NEW_COMMON_OBJS) \
68 cp1.o \
69 mdmx.o \
70 dsp.o \
71 sim-main.o \
72 sim-hload.o \
73 sim-resume.o \
74
75
76 # List of flags to always pass to $(CC).
77 SIM_SUBTARGET=@SIM_SUBTARGET@
78 SIM_EXTRA_CFLAGS = $(SIM_SUBTARGET)
79
80 SIM_EXTRA_CLEAN = clean-extra
81 SIM_EXTRA_DISTCLEAN = distclean-extra
82
83 SIM_EXTRA_ALL = $(SIM_@sim_gen@_ALL)
84
85 SIM_EXTRA_LIBS = $(MIPS_EXTRA_LIBS)
86
87
88 ## COMMON_POST_CONFIG_FRAG
89
90 interp.o: $(srcdir)/interp.c config.h sim-main.h itable.h
91
92 m16run.o: sim-main.h m16_idecode.h m32_idecode.h m16run.c $(SIM_EXTRA_DEPS)
93
94 micromipsrun.o: sim-main.h micromips16_idecode.h micromips32_idecode.h \
95 micromips_m32_idecode.h micromipsrun.c $(SIM_EXTRA_DEPS)
96
97 multi-run.o: multi-include.h tmp-mach-multi
98
99 ../igen/igen:
100 cd ../igen && $(MAKE)
101
102 IGEN_TRACE= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries # -G trace-all
103 IGEN_INSN=$(srcdir)/mips.igen
104 IGEN_DC=$(srcdir)/mips.dc
105 M16_DC=$(srcdir)/m16.dc
106 MICROMIPS32_DC=$(srcdir)/micromips.dc
107 MICROMIPS16_DC=$(srcdir)/micromips16.dc
108 IGEN_INCLUDE=\
109 $(srcdir)/micromipsdsp.igen \
110 $(srcdir)/micromips.igen \
111 $(srcdir)/m16.igen \
112 $(srcdir)/m16e.igen \
113 $(srcdir)/mdmx.igen \
114 $(srcdir)/mips3d.igen \
115 $(srcdir)/sb1.igen \
116 $(srcdir)/tx.igen \
117 $(srcdir)/vr.igen \
118 $(srcdir)/dsp.igen \
119 $(srcdir)/dsp2.igen \
120 $(srcdir)/mips3264r2.igen \
121
122 # NB: Since these can be built by a number of generators, care
123 # must be taken to ensure that they are only dependant on
124 # one of those generators.
125 BUILT_SRC_FROM_GEN = \
126 itable.h \
127 itable.c \
128
129 SIM_IGEN_ALL = tmp-igen
130 SIM_M16_ALL = tmp-m16
131 SIM_MICROMIPS_ALL = tmp-micromips
132 SIM_MULTI_ALL = tmp-multi
133
134 $(BUILT_SRC_FROM_GEN): $(SIM_@sim_gen@_ALL)
135
136
137
138 BUILT_SRC_FROM_IGEN = \
139 icache.h \
140 icache.c \
141 idecode.h \
142 idecode.c \
143 semantics.h \
144 semantics.c \
145 model.h \
146 model.c \
147 support.h \
148 support.c \
149 engine.h \
150 engine.c \
151 irun.c \
152
153 $(BUILT_SRC_FROM_IGEN): tmp-igen
154
155 tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
156 cd ../igen && $(MAKE)
157 ../igen/igen \
158 $(IGEN_TRACE) \
159 -I $(srcdir) \
160 -Werror \
161 -Wnodiscard \
162 @sim_igen_flags@ \
163 -G gen-direct-access \
164 -G gen-zero-r0 \
165 -B 32 \
166 -H 31 \
167 -i $(IGEN_INSN) \
168 -o $(IGEN_DC) \
169 -x \
170 -n icache.h -hc tmp-icache.h \
171 -n icache.c -c tmp-icache.c \
172 -n semantics.h -hs tmp-semantics.h \
173 -n semantics.c -s tmp-semantics.c \
174 -n idecode.h -hd tmp-idecode.h \
175 -n idecode.c -d tmp-idecode.c \
176 -n model.h -hm tmp-model.h \
177 -n model.c -m tmp-model.c \
178 -n support.h -hf tmp-support.h \
179 -n support.c -f tmp-support.c \
180 -n itable.h -ht tmp-itable.h \
181 -n itable.c -t tmp-itable.c \
182 -n engine.h -he tmp-engine.h \
183 -n engine.c -e tmp-engine.c \
184 -n irun.c -r tmp-irun.c
185 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h icache.h
186 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c icache.c
187 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h idecode.h
188 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c idecode.c
189 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h semantics.h
190 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c semantics.c
191 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h model.h
192 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c model.c
193 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h support.h
194 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c support.c
195 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.h itable.h
196 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.c itable.c
197 $(SHELL) $(srcdir)/../../move-if-change tmp-engine.h engine.h
198 $(SHELL) $(srcdir)/../../move-if-change tmp-engine.c engine.c
199 $(SHELL) $(srcdir)/../../move-if-change tmp-irun.c irun.c
200 touch tmp-igen
201
202 BUILT_SRC_FROM_M16 = \
203 m16_icache.h \
204 m16_icache.c \
205 m16_idecode.h \
206 m16_idecode.c \
207 m16_semantics.h \
208 m16_semantics.c \
209 m16_model.h \
210 m16_model.c \
211 m16_support.h \
212 m16_support.c \
213 \
214 m32_icache.h \
215 m32_icache.c \
216 m32_idecode.h \
217 m32_idecode.c \
218 m32_semantics.h \
219 m32_semantics.c \
220 m32_model.h \
221 m32_model.c \
222 m32_support.h \
223 m32_support.c \
224
225 $(BUILT_SRC_FROM_M16): tmp-m16
226
227 tmp-m16: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
228 cd ../igen && $(MAKE)
229 ../igen/igen \
230 $(IGEN_TRACE) \
231 -I $(srcdir) \
232 -Werror \
233 -Wnodiscard \
234 @sim_m16_flags@ \
235 -G gen-direct-access \
236 -G gen-zero-r0 \
237 -B 16 \
238 -H 15 \
239 -i $(IGEN_INSN) \
240 -o $(M16_DC) \
241 -P m16_ \
242 -x \
243 -n m16_icache.h -hc tmp-icache.h \
244 -n m16_icache.c -c tmp-icache.c \
245 -n m16_semantics.h -hs tmp-semantics.h \
246 -n m16_semantics.c -s tmp-semantics.c \
247 -n m16_idecode.h -hd tmp-idecode.h \
248 -n m16_idecode.c -d tmp-idecode.c \
249 -n m16_model.h -hm tmp-model.h \
250 -n m16_model.c -m tmp-model.c \
251 -n m16_support.h -hf tmp-support.h \
252 -n m16_support.c -f tmp-support.c \
253 #
254 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h m16_icache.h
255 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c m16_icache.c
256 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h m16_idecode.h
257 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c m16_idecode.c
258 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h m16_semantics.h
259 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c m16_semantics.c
260 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h m16_model.h
261 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c m16_model.c
262 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h m16_support.h
263 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c m16_support.c
264 ../igen/igen \
265 $(IGEN_TRACE) \
266 -I $(srcdir) \
267 -Werror \
268 -Wnodiscard \
269 @sim_igen_flags@ \
270 -G gen-direct-access \
271 -G gen-zero-r0 \
272 -B 32 \
273 -H 31 \
274 -i $(IGEN_INSN) \
275 -o $(IGEN_DC) \
276 -P m32_ \
277 -x \
278 -n m32_icache.h -hc tmp-icache.h \
279 -n m32_icache.c -c tmp-icache.c \
280 -n m32_semantics.h -hs tmp-semantics.h \
281 -n m32_semantics.c -s tmp-semantics.c \
282 -n m32_idecode.h -hd tmp-idecode.h \
283 -n m32_idecode.c -d tmp-idecode.c \
284 -n m32_model.h -hm tmp-model.h \
285 -n m32_model.c -m tmp-model.c \
286 -n m32_support.h -hf tmp-support.h \
287 -n m32_support.c -f tmp-support.c \
288 #
289 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h m32_icache.h
290 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c m32_icache.c
291 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h m32_idecode.h
292 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c m32_idecode.c
293 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h \
294 m32_semantics.h
295 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c \
296 m32_semantics.c
297 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h m32_model.h
298 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c m32_model.c
299 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h m32_support.h
300 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c m32_support.c
301 ../igen/igen \
302 $(IGEN_TRACE) \
303 -I $(srcdir) \
304 -Werror \
305 -Wnodiscard \
306 -Wnowidth \
307 @sim_igen_flags@ @sim_m16_flags@ \
308 -G gen-direct-access \
309 -G gen-zero-r0 \
310 -i $(IGEN_INSN) \
311 -n itable.h -ht tmp-itable.h \
312 -n itable.c -t tmp-itable.c \
313 #
314 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.h itable.h
315 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.c itable.c
316 touch tmp-m16
317
318 BUILT_SRC_FROM_MICROMIPS = \
319 micromips16_icache.h \
320 micromips16_icache.c \
321 micromips16_idecode.h \
322 micromips16_idecode.c \
323 micromips16_semantics.h \
324 micromips16_semantics.c \
325 micromips16_model.h \
326 micromips16_model.c \
327 micromips16_support.h \
328 micromips16_support.c \
329 \
330 micromips32_icache.h \
331 micromips32_icache.c \
332 micromips32_idecode.h \
333 micromips32_idecode.c \
334 micromips32_semantics.h \
335 micromips32_semantics.c \
336 micromips32_model.h \
337 micromips32_model.c \
338 micromips32_support.h \
339 micromips32_support.c \
340 \
341 micromips_m32_icache.h \
342 micromips_m32_icache.c \
343 micromips_m32_idecode.h \
344 micromips_m32_idecode.c \
345 micromips_m32_semantics.h \
346 micromips_m32_semantics.c \
347 micromips_m32_model.h \
348 micromips_m32_model.c \
349 micromips_m32_support.h \
350 micromips_m32_support.c \
351
352 $(BUILT_SRC_FROM_MICROMIPS): tmp-micromips
353
354 tmp-micromips: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
355 cd ../igen && $(MAKE)
356 ../igen/igen \
357 $(IGEN_TRACE) \
358 -I $(srcdir) \
359 -Werror \
360 -Wnodiscard \
361 @sim_micromips16_flags@ \
362 -G gen-direct-access \
363 -G gen-zero-r0 \
364 -B 16 \
365 -H 15 \
366 -i $(IGEN_INSN) \
367 -o $(MICROMIPS16_DC) \
368 -P micromips16_ \
369 -x \
370 -n micromips16_icache.h -hc tmp-icache.h \
371 -n micromips16_icache.c -c tmp-icache.c \
372 -n micromips16_semantics.h -hs tmp-semantics.h \
373 -n micromips16_semantics.c -s tmp-semantics.c \
374 -n micromips16_idecode.h -hd tmp-idecode.h \
375 -n micromips16_idecode.c -d tmp-idecode.c \
376 -n micromips16_model.h -hm tmp-model.h \
377 -n micromips16_model.c -m tmp-model.c \
378 -n micromips16_support.h -hf tmp-support.h \
379 -n micromips16_support.c -f tmp-support.c \
380 #
381 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h \
382 micromips16_icache.h
383 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c \
384 micromips16_icache.c
385 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h \
386 micromips16_idecode.h
387 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c \
388 micromips16_idecode.c
389 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h \
390 micromips16_semantics.h
391 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c \
392 micromips16_semantics.c
393 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h \
394 micromips16_model.h
395 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c \
396 micromips16_model.c
397 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h \
398 micromips16_support.h
399 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c \
400 micromips16_support.c
401 cd ../igen && $(MAKE)
402 ../igen/igen \
403 $(IGEN_TRACE) \
404 -I $(srcdir) \
405 -Werror \
406 -Wnodiscard \
407 @sim_micromips_flags@ \
408 -G gen-direct-access \
409 -G gen-zero-r0 \
410 -B 32 \
411 -H 31 \
412 -i $(IGEN_INSN) \
413 -o $(MICROMIPS32_DC) \
414 -P micromips32_ \
415 -x \
416 -n micromips32_icache.h -hc tmp-icache.h \
417 -n micromips32_icache.c -c tmp-icache.c \
418 -n micromips32_semantics.h -hs tmp-semantics.h \
419 -n micromips32_semantics.c -s tmp-semantics.c \
420 -n micromips32_idecode.h -hd tmp-idecode.h \
421 -n micromips32_idecode.c -d tmp-idecode.c \
422 -n micromips32_model.h -hm tmp-model.h \
423 -n micromips32_model.c -m tmp-model.c \
424 -n micromips32_support.h -hf tmp-support.h \
425 -n micromips32_support.c -f tmp-support.c \
426 #
427 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h \
428 micromips32_icache.h
429 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c \
430 micromips32_icache.c
431 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h \
432 micromips32_idecode.h
433 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c \
434 micromips32_idecode.c
435 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h \
436 micromips32_semantics.h
437 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c \
438 micromips32_semantics.c
439 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h \
440 micromips32_model.h
441 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c \
442 micromips32_model.c
443 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h \
444 micromips32_support.h
445 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c \
446 micromips32_support.c
447 ../igen/igen \
448 $(IGEN_TRACE) \
449 -I $(srcdir) \
450 -Werror \
451 -Wnodiscard \
452 @sim_igen_flags@ \
453 -G gen-direct-access \
454 -G gen-zero-r0 \
455 -B 32 \
456 -H 31 \
457 -i $(IGEN_INSN) \
458 -o $(IGEN_DC) \
459 -P micromips_m32_ \
460 -x \
461 -n micromips_m32_icache.h -hc tmp-icache.h \
462 -n micromips_m32_icache.c -c tmp-icache.c \
463 -n micromips_m32_semantics.h -hs tmp-semantics.h \
464 -n micromips_m32_semantics.c -s tmp-semantics.c \
465 -n micromips_m32_idecode.h -hd tmp-idecode.h \
466 -n micromips_m32_idecode.c -d tmp-idecode.c \
467 -n micromips_m32_model.h -hm tmp-model.h \
468 -n micromips_m32_model.c -m tmp-model.c \
469 -n micromips_m32_support.h -hf tmp-support.h \
470 -n micromips_m32_support.c -f tmp-support.c \
471 #
472 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h \
473 micromips_m32_icache.h
474 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c \
475 micromips_m32_icache.c
476 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h \
477 micromips_m32_idecode.h
478 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c \
479 micromips_m32_idecode.c
480 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h \
481 micromips_m32_semantics.h
482 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c \
483 micromips_m32_semantics.c
484 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h \
485 micromips_m32_model.h
486 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c \
487 micromips_m32_model.c
488 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h \
489 micromips_m32_support.h
490 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c \
491 micromips_m32_support.c
492 ../igen/igen \
493 $(IGEN_TRACE) \
494 -I $(srcdir) \
495 -Werror \
496 -Wnodiscard \
497 -Wnowidth \
498 @sim_igen_flags@ @sim_micromips_flags@ @sim_micromips16_flags@\
499 -G gen-direct-access \
500 -G gen-zero-r0 \
501 -i $(IGEN_INSN) \
502 -n itable.h -ht tmp-itable.h \
503 -n itable.c -t tmp-itable.c \
504 #
505 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.h itable.h
506 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.c itable.c
507 touch tmp-micromips
508
509 BUILT_SRC_FROM_MULTI = @sim_multi_src@
510 SIM_MULTI_IGEN_CONFIGS = @sim_multi_igen_configs@
511
512 $(BUILT_SRC_FROM_MULTI): tmp-multi
513 tmp-multi: tmp-mach-multi tmp-itable-multi tmp-run-multi targ-vals.h
514 tmp-mach-multi: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
515 for t in $(SIM_MULTI_IGEN_CONFIGS); do \
516 p=`echo $${t} | sed -e 's/:.*//'` ; \
517 m=`echo $${t} | sed -e 's/.*:\(.*\):.*/\1/'` ; \
518 f=`echo $${t} | sed -e 's/.*://'` ; \
519 case $${p} in \
520 micromips16*) e="-B 16 -H 15 -o $(MICROMIPS16_DC) -F 16" ;; \
521 micromips32* | micromips64*) \
522 e="-B 32 -H 31 -o $(MICROMIPS32_DC) -F $${f}" ;; \
523 micromips_m32*) \
524 e="-B 32 -H 31 -o $(IGEN_DC) -F $${f}"; \
525 m="mips32r2,mips3d,mdmx,dsp,dsp2,smartmips" ;; \
526 micromips_m64*) \
527 e="-B 32 -H 31 -o $(IGEN_DC) -F $${f}"; \
528 m="mips64r2,mips3d,mdmx,dsp,dsp2,smartmips" ;; \
529 m16*) e="-B 16 -H 15 -o $(M16_DC) -F 16" ;; \
530 *) e="-B 32 -H 31 -o $(IGEN_DC) -F $${f}" ;; \
531 esac; \
532 ../igen/igen \
533 $(IGEN_TRACE) \
534 $${e} \
535 -I $(srcdir) \
536 -Werror \
537 -Wnodiscard \
538 -N 0 \
539 -M $${m} \
540 -G gen-direct-access \
541 -G gen-zero-r0 \
542 -i $(IGEN_INSN) \
543 -P $${p}_ \
544 -x \
545 -n $${p}_icache.h -hc tmp-icache.h \
546 -n $${p}_icache.c -c tmp-icache.c \
547 -n $${p}_semantics.h -hs tmp-semantics.h \
548 -n $${p}_semantics.c -s tmp-semantics.c \
549 -n $${p}_idecode.h -hd tmp-idecode.h \
550 -n $${p}_idecode.c -d tmp-idecode.c \
551 -n $${p}_model.h -hm tmp-model.h \
552 -n $${p}_model.c -m tmp-model.c \
553 -n $${p}_support.h -hf tmp-support.h \
554 -n $${p}_support.c -f tmp-support.c \
555 -n $${p}_engine.h -he tmp-engine.h \
556 -n $${p}_engine.c -e tmp-engine.c \
557 || exit; \
558 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.h \
559 $${p}_icache.h ; \
560 $(SHELL) $(srcdir)/../../move-if-change tmp-icache.c \
561 $${p}_icache.c ; \
562 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.h \
563 $${p}_idecode.h ; \
564 $(SHELL) $(srcdir)/../../move-if-change tmp-idecode.c \
565 $${p}_idecode.c ; \
566 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.h \
567 $${p}_semantics.h ; \
568 $(SHELL) $(srcdir)/../../move-if-change tmp-semantics.c \
569 $${p}_semantics.c ; \
570 $(SHELL) $(srcdir)/../../move-if-change tmp-model.h \
571 $${p}_model.h ; \
572 $(SHELL) $(srcdir)/../../move-if-change tmp-model.c \
573 $${p}_model.c ; \
574 $(SHELL) $(srcdir)/../../move-if-change tmp-support.h \
575 $${p}_support.h ; \
576 $(SHELL) $(srcdir)/../../move-if-change tmp-support.c \
577 $${p}_support.c ; \
578 $(SHELL) $(srcdir)/../../move-if-change tmp-engine.h \
579 $${p}_engine.h ; \
580 $(SHELL) $(srcdir)/../../move-if-change tmp-engine.c \
581 $${p}_engine.c ; \
582 done
583 touch tmp-mach-multi
584 tmp-itable-multi: $(IGEN_INSN) $(IGEN_DC) ../igen/igen $(IGEN_INCLUDE)
585 ../igen/igen \
586 $(IGEN_TRACE) \
587 -I $(srcdir) \
588 -Werror \
589 -Wnodiscard \
590 -Wnowidth \
591 -N 0 \
592 @sim_multi_flags@ \
593 -G gen-direct-access \
594 -G gen-zero-r0 \
595 -i $(IGEN_INSN) \
596 -n itable.h -ht tmp-itable.h \
597 -n itable.c -t tmp-itable.c \
598 #
599 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.h itable.h
600 $(SHELL) $(srcdir)/../../move-if-change tmp-itable.c itable.c
601 touch tmp-itable-multi
602 tmp-run-multi: $(srcdir)/m16run.c $(srcdir)/micromipsrun.c
603 for t in $(SIM_MULTI_IGEN_CONFIGS); do \
604 case $${t} in \
605 m16*) \
606 m=`echo $${t} | sed -e 's/^m16//' -e 's/:.*//'`; \
607 sed < $(srcdir)/m16run.c > tmp-run \
608 -e "s/^sim_/m16$${m}_/" \
609 -e "s/m16_/m16$${m}_/" \
610 -e "s/m32_/m32$${m}_/" ; \
611 $(SHELL) $(srcdir)/../../move-if-change tmp-run \
612 m16$${m}_run.c ; \
613 ;;\
614 micromips32*) \
615 m=`echo $${t} | sed -e 's/^micromips32//' -e 's/:.*//'`; \
616 sed < $(srcdir)/micromipsrun.c > tmp-run \
617 -e "s/^sim_/micromips32$${m}_/" \
618 -e "s/micromips16_/micromips16$${m}_/" \
619 -e "s/micromips32_/micromips32$${m}_/" \
620 -e "s/m32_/m32$${m}_/" ; \
621 $(SHELL) $(srcdir)/../../move-if-change tmp-run \
622 micromips$${m}_run.c ; \
623 ;;\
624 micromips64*) \
625 m=`echo $${t} | sed -e 's/^micromips64//' -e 's/:.*//'`; \
626 sed < $(srcdir)/micromipsrun.c > tmp-run \
627 -e "s/^sim_/micromips64$${m}_/" \
628 -e "s/micromips16_/micromips16$${m}_/" \
629 -e "s/micromips32_/micromips64$${m}_/" \
630 -e "s/m32_/m64$${m}_/" ; \
631 $(SHELL) $(srcdir)/../../move-if-change tmp-run \
632 micromips$${m}_run.c ; \
633 ;;\
634 esac \
635 done
636 touch tmp-run-multi
637
638 clean-extra:
639 rm -f $(BUILT_SRC_FROM_GEN)
640 rm -f $(BUILT_SRC_FROM_IGEN)
641 rm -f $(BUILT_SRC_FROM_M16)
642 rm -f $(BUILT_SRC_FROM_MICROMIPS)
643 rm -f $(BUILT_SRC_FROM_MULTI)
644 rm -f tmp-*
645 rm -f micromips16*.o micromips32*.o m16*.o m32*.o itable*.o
646
647 distclean-extra:
648 rm -f multi-include.h multi-run.c