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
91 # NB: Since these can be built by a number of generators, care
92 # must be taken to ensure that they are only dependant on
93 # one of those generators.
94 BUILT_SRC_FROM_GEN
= \
98 SIM_IGEN_ALL
= tmp-igen
101 $(BUILT_SRC_FROM_GEN
): $(SIM_@sim_gen@_ALL
)
105 BUILT_SRC_FROM_IGEN
= \
120 $(BUILT_SRC_FROM_IGEN
): tmp-igen
122 tmp-igen
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
$(IGEN_INCLUDE
)
123 cd ..
/igen
&& $(MAKE
)
130 -G gen-direct-access \
137 -n icache.h
-hc tmp-icache.h \
138 -n icache.c
-c tmp-icache.c \
139 -n semantics.h
-hs tmp-semantics.h \
140 -n semantics.c
-s tmp-semantics.c \
141 -n idecode.h
-hd tmp-idecode.h \
142 -n idecode.c
-d tmp-idecode.c \
143 -n model.h
-hm tmp-model.h \
144 -n model.c
-m tmp-model.c \
145 -n support.h
-hf tmp-support.h \
146 -n support.c
-f tmp-support.c \
147 -n itable.h
-ht tmp-itable.h \
148 -n itable.c
-t tmp-itable.c \
149 -n engine.h
-he tmp-engine.h \
150 -n engine.c
-e tmp-engine.c \
151 -n irun.c
-r tmp-irun.c
152 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
153 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
154 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
155 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
156 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
157 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
158 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
159 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
160 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
161 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
162 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
163 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
164 $(srcdir)/..
/..
/move-if-change tmp-engine.h engine.h
165 $(srcdir)/..
/..
/move-if-change tmp-engine.c engine.c
166 $(srcdir)/..
/..
/move-if-change tmp-irun.c irun.c
169 semantics.o
: sim-main.h semantics.c
$(SIM_EXTRA_DEPS
)
170 engine.o
: sim-main.h engine.c
$(SIM_EXTRA_DEPS
)
171 support.o
: sim-main.h support.c
$(SIM_EXTRA_DEPS
)
172 idecode.o
: sim-main.h idecode.c
$(SIM_EXTRA_DEPS
)
173 itable.o
: sim-main.h itable.c
$(SIM_EXTRA_DEPS
)
178 BUILT_SRC_FROM_M16
= \
201 $(BUILT_SRC_FROM_M16
): tmp-m16
203 tmp-m16
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
$(IGEN_INCLUDE
)
204 cd ..
/igen
&& $(MAKE
)
211 -G gen-direct-access \
219 -n m16_icache.h
-hc tmp-icache.h \
220 -n m16_icache.c
-c tmp-icache.c \
221 -n m16_semantics.h
-hs tmp-semantics.h \
222 -n m16_semantics.c
-s tmp-semantics.c \
223 -n m16_idecode.h
-hd tmp-idecode.h \
224 -n m16_idecode.c
-d tmp-idecode.c \
225 -n m16_model.h
-hm tmp-model.h \
226 -n m16_model.c
-m tmp-model.c \
227 -n m16_support.h
-hf tmp-support.h \
228 -n m16_support.c
-f tmp-support.c \
230 $(srcdir)/..
/..
/move-if-change tmp-icache.h m16_icache.h
231 $(srcdir)/..
/..
/move-if-change tmp-icache.c m16_icache.c
232 $(srcdir)/..
/..
/move-if-change tmp-idecode.h m16_idecode.h
233 $(srcdir)/..
/..
/move-if-change tmp-idecode.c m16_idecode.c
234 $(srcdir)/..
/..
/move-if-change tmp-semantics.h m16_semantics.h
235 $(srcdir)/..
/..
/move-if-change tmp-semantics.c m16_semantics.c
236 $(srcdir)/..
/..
/move-if-change tmp-model.h m16_model.h
237 $(srcdir)/..
/..
/move-if-change tmp-model.c m16_model.c
238 $(srcdir)/..
/..
/move-if-change tmp-support.h m16_support.h
239 $(srcdir)/..
/..
/move-if-change tmp-support.c m16_support.c
246 -G gen-direct-access \
254 -n m32_icache.h
-hc tmp-icache.h \
255 -n m32_icache.c
-c tmp-icache.c \
256 -n m32_semantics.h
-hs tmp-semantics.h \
257 -n m32_semantics.c
-s tmp-semantics.c \
258 -n m32_idecode.h
-hd tmp-idecode.h \
259 -n m32_idecode.c
-d tmp-idecode.c \
260 -n m32_model.h
-hm tmp-model.h \
261 -n m32_model.c
-m tmp-model.c \
262 -n m32_support.h
-hf tmp-support.h \
263 -n m32_support.c
-f tmp-support.c \
265 $(srcdir)/..
/..
/move-if-change tmp-icache.h m32_icache.h
266 $(srcdir)/..
/..
/move-if-change tmp-icache.c m32_icache.c
267 $(srcdir)/..
/..
/move-if-change tmp-idecode.h m32_idecode.h
268 $(srcdir)/..
/..
/move-if-change tmp-idecode.c m32_idecode.c
269 $(srcdir)/..
/..
/move-if-change tmp-semantics.h m32_semantics.h
270 $(srcdir)/..
/..
/move-if-change tmp-semantics.c m32_semantics.c
271 $(srcdir)/..
/..
/move-if-change tmp-model.h m32_model.h
272 $(srcdir)/..
/..
/move-if-change tmp-model.c m32_model.c
273 $(srcdir)/..
/..
/move-if-change tmp-support.h m32_support.h
274 $(srcdir)/..
/..
/move-if-change tmp-support.c m32_support.c
281 @sim_igen_flags@ @sim_m16_flags@ \
282 -G gen-direct-access \
285 -n itable.h
-ht tmp-itable.h \
286 -n itable.c
-t tmp-itable.c \
288 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
289 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
294 rm -f
$(BUILT_SRC_FROM_GEN
)
295 rm -f
$(BUILT_SRC_FROM_IGEN
)
296 rm -f
$(BUILT_SRC_FROM_M16
)
298 rm -f m16
*.o m32
*.o itable
*.o