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