1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
4 ## COMMON_PRE_CONFIG_FRAG
7 srcroot
=$(srcdir)/..
/..
/
31 $(SIM_@sim_gen@_OBJ
) \
54 # List of flags to always pass to $(CC).
55 SIM_SUBTARGET
=@SIM_SUBTARGET@
57 # FIXME: Hack to find syscall.h? Better support for syscall.h
61 -I
$(srcdir)/..
/..
/newlib
/libc
/sys
/idt \
62 $(SIM_@sim_gen@_CFLAGS
)
64 SIM_EXTRA_CLEAN
= clean-igen clean-m16 clean-extra
66 SIM_EXTRA_ALL
= $(SIM_@sim_gen@_ALL
)
68 # List of main object files for `run'.
73 ## COMMON_POST_CONFIG_FRAG
75 interp.o
: $(srcdir)/interp.c config.h sim-main.h oengine.c
78 .
/gencode @SIMCONF@
> tmp-oengine
79 mv tmp-oengine oengine.c
81 gencode
: gencode.o getopt.o getopt1.o
82 $(CC_FOR_BUILD
) -o
$@ gencode.o getopt.o getopt1.o
84 gencode.o
: $(srcdir)/gencode.c
85 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/gencode.c
87 getopt.o
: $(srcdir)/..
/..
/libiberty
/getopt.c
88 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt.c
89 getopt1.o
: $(srcdir)/..
/..
/libiberty
/getopt1.c
90 $(CC_FOR_BUILD
) -c
-g
-I
${srcroot}/include $(srcdir)/..
/..
/libiberty
/getopt1.c
96 IGEN_TRACE
= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
97 IGEN_INSN
=$(srcdir)/mips.igen
98 IGEN_DC
=$(srcdir)/mips.dc
101 SIM_IGEN_CFLAGS
= -DWITH_IGEN
102 SIM_IGEN_ALL
= tmp-igen
104 BUILT_SRC_FROM_IGEN
= \
121 $(BUILT_SRC_FROM_IGEN
): tmp-igen
125 rm -f
$(BUILT_SRC_FROM_IGEN
)
128 tmp-igen
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
129 cd ..
/igen
&& $(MAKE
)
137 -G gen-direct-access \
141 -n icache.h
-hc tmp-icache.h \
142 -n icache.c
-c tmp-icache.c \
143 -n semantics.h
-hs tmp-semantics.h \
144 -n semantics.c
-s tmp-semantics.c \
145 -n idecode.h
-hd tmp-idecode.h \
146 -n idecode.c
-d tmp-idecode.c \
147 -n model.h
-hm tmp-model.h \
148 -n model.c
-m tmp-model.c \
149 -n support.h
-hf tmp-support.h \
150 -n support.c
-f tmp-support.c \
151 -n itable.h
-ht tmp-itable.h \
152 -n itable.c
-t tmp-itable.c \
153 -n engine.h
-he tmp-engine.h \
154 -n engine.c
-e tmp-engine.c \
155 -n irun.c
-r tmp-irun.c
156 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
157 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
158 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
159 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
160 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
161 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
162 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
163 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
164 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
165 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
166 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
167 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
168 $(srcdir)/..
/..
/move-if-change tmp-engine.h engine.h
169 $(srcdir)/..
/..
/move-if-change tmp-engine.c engine.c
170 $(srcdir)/..
/..
/move-if-change tmp-irun.c irun.c
175 SIM_M16_CFLAGS
= -DWITH_IGEN
176 SIM_M16_ALL
= tmp-igen
$(SIM_M16_ALL
)
178 BUILT_SRC_FROM_M16
= \
195 $(BUILT_SRC_FROM_M16
): tmp-m16
199 rm -f
$(BUILT_SRC_FROM_M16
)
202 tmp-m16
: $(IGEN_INSN
) $(IGEN_DC
) ..
/igen
/igen
203 cd ..
/igen
&& $(MAKE
)
211 -G gen-direct-access \
215 -n m16_icache.h
-hc tmp-icache.h \
216 -n m16_icache.c
-c tmp-icache.c \
217 -n m16_semantics.h
-hs tmp-semantics.h \
218 -n m16_semantics.c
-s tmp-semantics.c \
219 -n m16_idecode.h
-hd tmp-idecode.h \
220 -n m16_idecode.c
-d tmp-idecode.c \
221 -n m16_model.h
-hm tmp-model.h \
222 -n m16_model.c
-m tmp-model.c \
223 -n m16_support.h
-hf tmp-support.h \
224 -n m16_support.c
-f tmp-support.c \
225 -n m16_itable.h
-ht tmp-itable.h \
226 -n m16_itable.c
-t tmp-itable.c \
227 -n m16_engine.h
-he tmp-engine.h \
228 -n m16_engine.c
-e tmp-engine.c \
229 -n m16_irun.c
-r tmp-irun.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
240 $(srcdir)/..
/..
/move-if-change tmp-itable.h m16_itable.h
241 $(srcdir)/..
/..
/move-if-change tmp-itable.c m16_itable.c
242 $(srcdir)/..
/..
/move-if-change tmp-engine.h m16_engine.h
243 $(srcdir)/..
/..
/move-if-change tmp-engine.c m16_engine.c
244 $(srcdir)/..
/..
/move-if-change tmp-irun.c m16_irun.c
249 rm -f gencode oengine.c tmp.igen