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