1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
4 ## COMMON_PRE_CONFIG_FRAG
7 srcroot
=$(srcdir)/..
/..
/
9 # Object files created by various simulator generators.
37 MIPS_EXTRA_OBJS
= @mips_extra_objs@
38 MIPS_EXTRA_LIBS
= @mips_extra_libs@
41 $(SIM_@sim_gen@_OBJ
) \
42 $(SIM_NEW_COMMON_OBJS
) \
55 # List of flags to always pass to $(CC).
56 SIM_SUBTARGET
=@SIM_SUBTARGET@
57 SIM_EXTRA_CFLAGS
= $(SIM_SUBTARGET
)
59 SIM_EXTRA_CLEAN
= clean-extra
61 SIM_EXTRA_ALL
= $(SIM_@sim_gen@_ALL
)
63 SIM_EXTRA_LIBS
= $(MIPS_EXTRA_LIBS
)
65 # List of main object files for `run'.
70 ## COMMON_POST_CONFIG_FRAG
72 interp.o
: $(srcdir)/interp.c config.h sim-main.h itable.h
73 cp1.o
: $(srcdir)/cp1.c config.h sim-main.h
75 mdmx.o
: $(srcdir)/mdmx.c
$(srcdir)/sim-main.h
80 IGEN_TRACE
= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries # -G trace-all
81 IGEN_INSN
=$(srcdir)/mips.igen
82 IGEN_DC
=$(srcdir)/mips.dc
83 M16_DC
=$(srcdir)/m16.dc
89 # NB: Since these can be built by a number of generators, care
90 # must be taken to ensure that they are only dependant on
91 # one of those generators.
92 BUILT_SRC_FROM_GEN
= \
96 SIM_IGEN_ALL
= tmp-igen
99 $(BUILT_SRC_FROM_GEN
): $(SIM_@sim_gen@_ALL
)
103 BUILT_SRC_FROM_IGEN
= \
118 $(BUILT_SRC_FROM_IGEN
): tmp-igen
120 tmp-igen
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
$(IGEN_INCLUDE
)
121 cd ..
/igen
&& $(MAKE
)
128 -G gen-direct-access \
135 -n icache.h
-hc tmp-icache.h \
136 -n icache.c
-c tmp-icache.c \
137 -n semantics.h
-hs tmp-semantics.h \
138 -n semantics.c
-s tmp-semantics.c \
139 -n idecode.h
-hd tmp-idecode.h \
140 -n idecode.c
-d tmp-idecode.c \
141 -n model.h
-hm tmp-model.h \
142 -n model.c
-m tmp-model.c \
143 -n support.h
-hf tmp-support.h \
144 -n support.c
-f tmp-support.c \
145 -n itable.h
-ht tmp-itable.h \
146 -n itable.c
-t tmp-itable.c \
147 -n engine.h
-he tmp-engine.h \
148 -n engine.c
-e tmp-engine.c \
149 -n irun.c
-r tmp-irun.c
150 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
151 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
152 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
153 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
154 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
155 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
156 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
157 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
158 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
159 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
160 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
161 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
162 $(srcdir)/..
/..
/move-if-change tmp-engine.h engine.h
163 $(srcdir)/..
/..
/move-if-change tmp-engine.c engine.c
164 $(srcdir)/..
/..
/move-if-change tmp-irun.c irun.c
167 semantics.o
: sim-main.h semantics.c
$(SIM_EXTRA_DEPS
)
168 engine.o
: sim-main.h engine.c
$(SIM_EXTRA_DEPS
)
169 support.o
: sim-main.h support.c
$(SIM_EXTRA_DEPS
)
170 idecode.o
: sim-main.h idecode.c
$(SIM_EXTRA_DEPS
)
171 itable.o
: sim-main.h itable.c
$(SIM_EXTRA_DEPS
)
176 BUILT_SRC_FROM_M16
= \
199 $(BUILT_SRC_FROM_M16
): tmp-m16
201 tmp-m16
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
$(IGEN_INCLUDE
)
202 cd ..
/igen
&& $(MAKE
)
209 -G gen-direct-access \
217 -n m16_icache.h
-hc tmp-icache.h \
218 -n m16_icache.c
-c tmp-icache.c \
219 -n m16_semantics.h
-hs tmp-semantics.h \
220 -n m16_semantics.c
-s tmp-semantics.c \
221 -n m16_idecode.h
-hd tmp-idecode.h \
222 -n m16_idecode.c
-d tmp-idecode.c \
223 -n m16_model.h
-hm tmp-model.h \
224 -n m16_model.c
-m tmp-model.c \
225 -n m16_support.h
-hf tmp-support.h \
226 -n m16_support.c
-f tmp-support.c \
228 $(srcdir)/..
/..
/move-if-change tmp-icache.h m16_icache.h
229 $(srcdir)/..
/..
/move-if-change tmp-icache.c m16_icache.c
230 $(srcdir)/..
/..
/move-if-change tmp-idecode.h m16_idecode.h
231 $(srcdir)/..
/..
/move-if-change tmp-idecode.c m16_idecode.c
232 $(srcdir)/..
/..
/move-if-change tmp-semantics.h m16_semantics.h
233 $(srcdir)/..
/..
/move-if-change tmp-semantics.c m16_semantics.c
234 $(srcdir)/..
/..
/move-if-change tmp-model.h m16_model.h
235 $(srcdir)/..
/..
/move-if-change tmp-model.c m16_model.c
236 $(srcdir)/..
/..
/move-if-change tmp-support.h m16_support.h
237 $(srcdir)/..
/..
/move-if-change tmp-support.c m16_support.c
244 -G gen-direct-access \
252 -n m32_icache.h
-hc tmp-icache.h \
253 -n m32_icache.c
-c tmp-icache.c \
254 -n m32_semantics.h
-hs tmp-semantics.h \
255 -n m32_semantics.c
-s tmp-semantics.c \
256 -n m32_idecode.h
-hd tmp-idecode.h \
257 -n m32_idecode.c
-d tmp-idecode.c \
258 -n m32_model.h
-hm tmp-model.h \
259 -n m32_model.c
-m tmp-model.c \
260 -n m32_support.h
-hf tmp-support.h \
261 -n m32_support.c
-f tmp-support.c \
263 $(srcdir)/..
/..
/move-if-change tmp-icache.h m32_icache.h
264 $(srcdir)/..
/..
/move-if-change tmp-icache.c m32_icache.c
265 $(srcdir)/..
/..
/move-if-change tmp-idecode.h m32_idecode.h
266 $(srcdir)/..
/..
/move-if-change tmp-idecode.c m32_idecode.c
267 $(srcdir)/..
/..
/move-if-change tmp-semantics.h m32_semantics.h
268 $(srcdir)/..
/..
/move-if-change tmp-semantics.c m32_semantics.c
269 $(srcdir)/..
/..
/move-if-change tmp-model.h m32_model.h
270 $(srcdir)/..
/..
/move-if-change tmp-model.c m32_model.c
271 $(srcdir)/..
/..
/move-if-change tmp-support.h m32_support.h
272 $(srcdir)/..
/..
/move-if-change tmp-support.c m32_support.c
279 @sim_igen_flags@ @sim_m16_flags@ \
280 -G gen-direct-access \
283 -n itable.h
-ht tmp-itable.h \
284 -n itable.c
-t tmp-itable.c \
286 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
287 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
292 rm -f
$(BUILT_SRC_FROM_GEN
)
293 rm -f
$(BUILT_SRC_FROM_IGEN
)
294 rm -f
$(BUILT_SRC_FROM_M16
)
296 rm -f m16
*.o m32
*.o itable
*.o