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