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