]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/Makefile.in
Add mips64vr5400 to configuration list
[thirdparty/binutils-gdb.git] / sim / mips / Makefile.in
1 # Makefile template for Configure for the MIPS simulator.
2 # Written by Cygnus Support.
3
4 ## COMMON_PRE_CONFIG_FRAG
5
6 srcdir=@srcdir@
7 srcroot=$(srcdir)/../../
8
9 SIM_NO_OBJ =
10
11 SIM_IGEN_OBJ = \
12 support.o \
13 itable.o \
14 semantics.o \
15 idecode.o \
16 icache.o \
17 engine.o \
18 irun.o
19
20 SIM_M16_OBJ = \
21 $(SIM_IGEN_OBJ) = \
22 m16_support.o \
23 m16_itable.o \
24 m16_semantics.o \
25 m16_idecode.o \
26 m16_icache.o \
27 m16_engine.o \
28 m16_irun.o
29
30 SIM_OBJS = \
31 $(SIM_@sim_gen@_OBJ) \
32 interp.o \
33 sim-bits.o \
34 sim-load.o \
35 sim-utils.o \
36 sim-hload.o \
37 sim-io.o \
38 sim-config.o \
39 sim-endian.o \
40 sim-engine.o \
41 sim-stop.o \
42 sim-resume.o \
43 sim-reason.o \
44 sim-events.o \
45 sim-module.o \
46 sim-trace.o \
47 sim-options.o \
48 sim-profile.o \
49 sim-core.o \
50 sim-watch.o
51
52
53
54 # List of flags to always pass to $(CC).
55 SIM_SUBTARGET=@SIM_SUBTARGET@
56
57 # FIXME: Hack to find syscall.h? Better support for syscall.h
58 # is in progress.
59 SIM_EXTRA_CFLAGS = \
60 $(SIM_SUBTARGET) \
61 -I$(srcdir)/../../newlib/libc/sys/idt \
62 $(SIM_@sim_gen@_CFLAGS)
63
64 SIM_EXTRA_CLEAN = clean-igen clean-m16 clean-extra
65
66 SIM_EXTRA_ALL = $(SIM_@sim_gen@_ALL)
67
68 # List of main object files for `run'.
69 SIM_RUN_OBJS = nrun.o
70
71
72
73 ## COMMON_POST_CONFIG_FRAG
74
75 interp.o: $(srcdir)/interp.c config.h sim-main.h oengine.c
76
77 oengine.c: gencode
78 ./gencode @SIMCONF@ > tmp-oengine
79 mv tmp-oengine oengine.c
80
81 gencode: gencode.o getopt.o getopt1.o
82 $(CC_FOR_BUILD) -o $@ gencode.o getopt.o getopt1.o
83
84 gencode.o: $(srcdir)/gencode.c
85 $(CC_FOR_BUILD) -c -g -I${srcroot}/include $(srcdir)/gencode.c
86
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
91
92
93 ../igen/igen:
94 cd ../igen && $(MAKE)
95
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
99
100
101 SIM_IGEN_CFLAGS = -DWITH_IGEN
102 SIM_IGEN_ALL = tmp-igen
103
104 BUILT_SRC_FROM_IGEN = \
105 icache.h \
106 icache.c \
107 idecode.h \
108 idecode.c \
109 semantics.h \
110 semantics.c \
111 model.h \
112 model.c \
113 support.h \
114 support.c \
115 itable.h \
116 itable.c \
117 engine.h \
118 engine.c \
119 irun.c
120
121 $(BUILT_SRC_FROM_IGEN): tmp-igen
122
123 .PHONY: clean-igen
124 clean-igen:
125 rm -f $(BUILT_SRC_FROM_IGEN)
126 rm -f tmp-igen
127
128 tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
129 cd ../igen && $(MAKE)
130 ../igen/igen \
131 $(IGEN_TRACE) \
132 -I $(srcdir) \
133 -Werror \
134 -Wnodiscard \
135 -F 32,64,f \
136 -M mipsIV \
137 -G gen-direct-access \
138 -i $(IGEN_INSN) \
139 -o $(IGEN_DC) \
140 -x \
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
171 touch tmp-igen
172
173
174
175 SIM_M16_CFLAGS = -DWITH_IGEN
176 SIM_M16_ALL = tmp-igen $(SIM_M16_ALL)
177
178 BUILT_SRC_FROM_M16 = \
179 m16_icache.h \
180 m16_icache.c \
181 m16_idecode.h \
182 m16_idecode.c \
183 m16_semantics.h \
184 m16_semantics.c \
185 m16_model.h \
186 m16_model.c \
187 m16_support.h \
188 m16_support.c \
189 m16_itable.h \
190 m16_itable.c \
191 m16_engine.h \
192 m16_engine.c \
193 m16_irun.c
194
195 $(BUILT_SRC_FROM_M16): tmp-m16
196
197 .PHONY: clean-m16
198 clean-m16:
199 rm -f $(BUILT_SRC_FROM_M16)
200 rm -f tmp-m16
201
202 tmp-m16: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
203 cd ../igen && $(MAKE)
204 ../igen/igen \
205 $(IGEN_TRACE) \
206 -I $(srcdir) \
207 -Werror \
208 -Wnodiscard \
209 -F 16 \
210 -M mips16 \
211 -G gen-direct-access \
212 -i $(IGEN_INSN) \
213 -o $(IGEN_DC) \
214 -x \
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
245 touch tmp-m16
246
247
248 clean-extra:
249 rm -f gencode oengine.c tmp.igen