dependency tracking in opcodes
[deliverable/binutils-gdb.git] / opcodes / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = 1.11 foreign no-dist
4 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
5
6 SUBDIRS = po
7
8 INCDIR = $(srcdir)/../include
9 BFDDIR = $(srcdir)/../bfd
10
11 WARN_CFLAGS = @WARN_CFLAGS@
12 NO_WERROR = @NO_WERROR@
13 AM_CFLAGS = $(WARN_CFLAGS)
14
15 bfdlibdir = @bfdlibdir@
16 bfdincludedir = @bfdincludedir@
17
18 bfdlib_LTLIBRARIES = libopcodes.la
19
20 # This is where bfd.h lives.
21 BFD_H = ../bfd/bfd.h
22
23 # This is where libiberty lives.
24 LIBIBERTY = ../libiberty/libiberty.a
25
26 # Header files.
27 HFILES = \
28 cgen-ops.h cgen-types.h \
29 fr30-desc.h fr30-opc.h \
30 frv-desc.h frv-opc.h \
31 h8500-opc.h \
32 i386-init.h \
33 i386-opc.h \
34 i386-tbl.h \
35 ia64-asmtab.h \
36 ia64-opc.h \
37 ip2k-desc.h ip2k-opc.h \
38 iq2000-desc.h iq2000-opc.h \
39 lm32-desc.h \
40 lm32-opc.h \
41 m32c-desc.h m32c-opc.h \
42 m32r-desc.h m32r-opc.h \
43 mcore-opc.h \
44 mep-desc.h mep-opc.h \
45 microblaze-opc.h \
46 mt-desc.h mt-opc.h \
47 openrisc-desc.h openrisc-opc.h \
48 score-opc.h \
49 sh-opc.h \
50 sh64-opc.h \
51 sysdep.h \
52 w65-opc.h \
53 xc16x-desc.h xc16x-opc.h \
54 xstormy16-desc.h xstormy16-opc.h \
55 z8k-opc.h
56
57 # C source files that correspond to .o's.
58 CFILES = \
59 alpha-dis.c \
60 alpha-opc.c \
61 arc-dis.c \
62 arc-opc.c \
63 arc-ext.c \
64 arm-dis.c \
65 avr-dis.c \
66 bfin-dis.c \
67 cgen-asm.c \
68 cgen-bitset.c \
69 cgen-dis.c \
70 cgen-opc.c \
71 cr16-dis.c \
72 cr16-opc.c \
73 cris-dis.c \
74 cris-opc.c \
75 crx-dis.c \
76 crx-opc.c \
77 d10v-dis.c \
78 d10v-opc.c \
79 d30v-dis.c \
80 d30v-opc.c \
81 dlx-dis.c \
82 dis-buf.c \
83 dis-init.c \
84 disassemble.c \
85 fr30-asm.c \
86 fr30-desc.c \
87 fr30-dis.c \
88 fr30-ibld.c \
89 fr30-opc.c \
90 frv-asm.c \
91 frv-desc.c \
92 frv-dis.c \
93 frv-ibld.c \
94 frv-opc.c \
95 moxie-dis.c \
96 moxie-opc.c \
97 h8300-dis.c \
98 h8500-dis.c \
99 hppa-dis.c \
100 i370-dis.c \
101 i370-opc.c \
102 i386-dis.c \
103 i386-opc.c \
104 i386-gen.c \
105 i860-dis.c \
106 i960-dis.c \
107 ia64-dis.c \
108 ia64-opc-a.c \
109 ia64-opc-b.c \
110 ia64-opc-f.c \
111 ia64-opc-i.c \
112 ia64-opc-m.c \
113 ia64-opc-d.c \
114 ia64-opc.c \
115 ia64-gen.c \
116 ia64-asmtab.c \
117 ip2k-asm.c \
118 ip2k-desc.c \
119 ip2k-dis.c \
120 ip2k-ibld.c \
121 ip2k-opc.c \
122 iq2000-asm.c \
123 iq2000-desc.c \
124 iq2000-dis.c \
125 iq2000-ibld.c \
126 iq2000-opc.c \
127 lm32-asm.c \
128 lm32-desc.c \
129 lm32-dis.c \
130 lm32-ibld.c \
131 lm32-opc.c \
132 lm32-opinst.c \
133 m32c-asm.c \
134 m32c-desc.c \
135 m32c-dis.c \
136 m32c-ibld.c \
137 m32c-opc.c \
138 m32r-asm.c \
139 m32r-desc.c \
140 m32r-dis.c \
141 m32r-ibld.c \
142 m32r-opc.c \
143 m32r-opinst.c \
144 m68hc11-dis.c \
145 m68hc11-opc.c \
146 m68k-dis.c \
147 m68k-opc.c \
148 m88k-dis.c \
149 maxq-dis.c \
150 mcore-dis.c \
151 mep-asm.c \
152 mep-desc.c \
153 mep-dis.c \
154 mep-ibld.c \
155 mep-opc.c \
156 mips-dis.c \
157 microblaze-dis.c \
158 mips-opc.c \
159 mips16-opc.c \
160 m10200-dis.c \
161 m10200-opc.c \
162 m10300-dis.c \
163 m10300-opc.c \
164 mmix-dis.c \
165 mmix-opc.c \
166 mt-asm.c \
167 mt-desc.c \
168 mt-dis.c \
169 mt-ibld.c \
170 mt-opc.c \
171 ns32k-dis.c \
172 openrisc-asm.c \
173 openrisc-desc.c \
174 openrisc-dis.c \
175 openrisc-ibld.c \
176 openrisc-opc.c \
177 or32-dis.c \
178 or32-opc.c \
179 pdp11-dis.c \
180 pdp11-opc.c \
181 pj-dis.c \
182 pj-opc.c \
183 ppc-dis.c \
184 ppc-opc.c \
185 s390-mkopc.c \
186 s390-opc.c \
187 s390-dis.c \
188 score-dis.c \
189 score7-dis.c \
190 sh-dis.c \
191 sh64-dis.c \
192 sh64-opc.c \
193 sparc-dis.c \
194 sparc-opc.c \
195 spu-dis.c \
196 spu-opc.c \
197 tic30-dis.c \
198 tic4x-dis.c \
199 tic54x-dis.c \
200 tic54x-opc.c \
201 tic80-dis.c \
202 tic80-opc.c \
203 v850-dis.c \
204 v850-opc.c \
205 vax-dis.c \
206 w65-dis.c \
207 xc16x-asm.c \
208 xc16x-desc.c \
209 xc16x-dis.c \
210 xc16x-ibld.c \
211 xc16x-opc.c \
212 xstormy16-asm.c \
213 xstormy16-desc.c \
214 xstormy16-dis.c \
215 xstormy16-ibld.c \
216 xstormy16-opc.c \
217 xtensa-dis.c \
218 z80-dis.c \
219 z8k-dis.c \
220 z8kgen.c
221
222 ALL_MACHINES = \
223 alpha-dis.lo \
224 alpha-opc.lo \
225 arc-dis.lo \
226 arc-opc.lo \
227 arc-ext.lo \
228 arm-dis.lo \
229 avr-dis.lo \
230 bfin-dis.lo \
231 cgen-asm.lo \
232 cgen-bitset.lo \
233 cgen-dis.lo \
234 cgen-opc.lo \
235 cr16-dis.lo \
236 cr16-opc.lo \
237 cris-dis.lo \
238 cris-opc.lo \
239 crx-dis.lo \
240 crx-opc.lo \
241 d10v-dis.lo \
242 d10v-opc.lo \
243 d30v-dis.lo \
244 d30v-opc.lo \
245 dlx-dis.lo \
246 fr30-asm.lo \
247 fr30-desc.lo \
248 fr30-dis.lo \
249 fr30-ibld.lo \
250 fr30-opc.lo \
251 frv-asm.lo \
252 frv-desc.lo \
253 frv-dis.lo \
254 frv-ibld.lo \
255 frv-opc.lo \
256 moxie-dis.lo \
257 moxie-opc.lo \
258 h8300-dis.lo \
259 h8500-dis.lo \
260 hppa-dis.lo \
261 i386-dis.lo \
262 i386-opc.lo \
263 i370-dis.lo \
264 i370-opc.lo \
265 i860-dis.lo \
266 i960-dis.lo \
267 ia64-dis.lo \
268 ia64-opc.lo \
269 ip2k-asm.lo \
270 ip2k-desc.lo \
271 ip2k-dis.lo \
272 ip2k-ibld.lo \
273 ip2k-opc.lo \
274 iq2000-asm.lo \
275 iq2000-desc.lo \
276 iq2000-dis.lo \
277 iq2000-ibld.lo \
278 iq2000-opc.lo \
279 lm32-asm.lo \
280 lm32-desc.lo \
281 lm32-dis.lo \
282 lm32-ibld.lo \
283 lm32-opc.lo \
284 lm32-opinst.lo \
285 m32c-asm.lo \
286 m32c-desc.lo \
287 m32c-dis.lo \
288 m32c-ibld.lo \
289 m32c-opc.lo \
290 m32r-asm.lo \
291 m32r-desc.lo \
292 m32r-dis.lo \
293 m32r-ibld.lo \
294 m32r-opc.lo \
295 m32r-opinst.lo \
296 m68hc11-dis.lo \
297 m68hc11-opc.lo \
298 m68k-dis.lo \
299 m68k-opc.lo \
300 m88k-dis.lo \
301 m10200-dis.lo \
302 m10200-opc.lo \
303 m10300-dis.lo \
304 m10300-opc.lo \
305 maxq-dis.lo \
306 mcore-dis.lo \
307 mep-asm.lo \
308 mep-desc.lo \
309 mep-dis.lo \
310 mep-ibld.lo \
311 mep-opc.lo \
312 mips-dis.lo \
313 microblaze-dis.lo \
314 mips-opc.lo \
315 mips16-opc.lo \
316 mmix-dis.lo \
317 mmix-opc.lo \
318 msp430-dis.lo \
319 mt-asm.lo \
320 mt-desc.lo \
321 mt-dis.lo \
322 mt-ibld.lo \
323 mt-opc.lo \
324 ns32k-dis.lo \
325 openrisc-asm.lo \
326 openrisc-desc.lo \
327 openrisc-dis.lo \
328 openrisc-ibld.lo \
329 openrisc-opc.lo \
330 or32-dis.lo \
331 or32-opc.lo \
332 pdp11-dis.lo \
333 pdp11-opc.lo \
334 pj-dis.lo \
335 pj-opc.lo \
336 ppc-dis.lo \
337 ppc-opc.lo \
338 s390-dis.lo \
339 s390-opc.lo \
340 score-dis.lo \
341 score7-dis.lo \
342 sh-dis.lo \
343 sh64-dis.lo \
344 sh64-opc.lo \
345 sparc-dis.lo \
346 sparc-opc.lo \
347 spu-dis.lo \
348 spu-opc.lo \
349 tic30-dis.lo \
350 tic4x-dis.lo \
351 tic54x-dis.lo \
352 tic54x-opc.lo \
353 tic80-dis.lo \
354 tic80-opc.lo \
355 v850-dis.lo \
356 v850-opc.lo \
357 vax-dis.lo \
358 w65-dis.lo \
359 xc16x-asm.lo \
360 xc16x-desc.lo \
361 xc16x-dis.lo \
362 xc16x-ibld.lo \
363 xc16x-opc.lo \
364 xstormy16-asm.lo \
365 xstormy16-desc.lo \
366 xstormy16-dis.lo \
367 xstormy16-ibld.lo \
368 xstormy16-opc.lo \
369 xtensa-dis.lo \
370 z80-dis.lo \
371 z8k-dis.lo
372
373 OFILES = @BFD_MACHINES@
374
375 # We should reconfigure whenever bfd/configure.in changes, because
376 # that's where the version number in Makefile comes from.
377 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
378
379 INCLUDES = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ @INCINTL@
380
381 disassemble.lo: disassemble.c
382 if am__fastdepCC
383 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/disassemble.c
384 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
385 else
386 if AMDEP
387 source='disassemble.c' object='$@' libtool=yes @AMDEPBACKSLASH@
388 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
389 endif
390 $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/disassemble.c
391 endif
392
393 libopcodes_la_SOURCES = dis-buf.c disassemble.c dis-init.c
394 # It's desirable to list ../bfd/libbfd.la in DEPENDENCIES and LIBADD.
395 # Unfortunately this causes libtool to add -L$(libdir), referring to the
396 # planned install directory of libbfd. This can cause us to pick up an
397 # old version of libbfd, or to pick up libbfd for the wrong architecture
398 # if host != build. So for building with shared libraries we use a
399 # hardcoded path to libbfd.so instead of relying on the entries in libbfd.la.
400 libopcodes_la_DEPENDENCIES = $(OFILES) @SHARED_DEPENDENCIES@
401 libopcodes_la_LIBADD = $(OFILES) @SHARED_LIBADD@
402 libopcodes_la_LDFLAGS = -release `cat ../bfd/libtool-soversion` @SHARED_LDFLAGS@
403 # Allow dependency tracking to work on all the source files.
404 EXTRA_libopcodes_la_SOURCES = $(CFILES)
405
406 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
407 # the build directory so that we don't have to convert all the
408 # programs that use libopcodes.a simultaneously. This is a hack which
409 # should be removed if everything else starts using libtool. FIXME.
410
411 noinst_LIBRARIES = libopcodes.a
412
413 stamp-lib: libopcodes.la
414 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
415 if [ -f $$libtooldir/libopcodes.a ]; then \
416 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
417 $(RANLIB) libopcodes.tmp; \
418 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
419 else true; fi
420 touch stamp-lib
421
422 libopcodes.a: stamp-lib ; @true
423
424 POTFILES = $(HFILES) $(CFILES)
425 po/POTFILES.in: @MAINT@ Makefile
426 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
427 && mv tmp $(srcdir)/po/POTFILES.in
428
429 install-bfdlibLTLIBRARIES: @INSTALL_LIBBFD_TRUE@install_libopcodes
430 @$(NORMAL_INSTALL)
431
432 uninstall-bfdlibLTLIBRARIES: @INSTALL_LIBBFD_TRUE@uninstall_libopcodes
433 @$(NORMAL_UNINSTALL)
434
435 .PHONY: install_libopcodes uninstall_libopcodes
436 install_libopcodes: $(bfdlib_LTLIBRARIES)
437 $(mkinstalldirs) $(DESTDIR)$(bfdlibdir)
438 $(mkinstalldirs) $(DESTDIR)$(bfdincludedir)
439 @list='$(bfdlib_LTLIBRARIES)'; for p in $$list; do \
440 if test -f $$p; then \
441 echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(bfdlibdir)/$$p"; \
442 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(bfdlibdir)/$$p; \
443 else :; fi; \
444 done
445 $(INSTALL_DATA) $(INCDIR)/dis-asm.h $(DESTDIR)$(bfdincludedir)/dis-asm.h
446
447 uninstall_libopcodes:
448 list='$(bfdlib_LTLIBRARIES)'; for p in $$list; do \
449 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bfdlibdir)/$$p; \
450 done
451 rm -f $(DESTDIR)$(bfdincludedir)/dis-asm.h
452
453 CLEANFILES = \
454 stamp-ip2k stamp-m32c stamp-m32r stamp-fr30 stamp-frv \
455 stamp-openrisc stamp-iq2000 stamp-mep stamp-mt stamp-xstormy16 stamp-xc16x\
456 libopcodes.a stamp-lib dep.sed DEP DEPA DEP1 DEP2
457
458
459 CGENDIR = @cgendir@
460 CPUDIR = $(CGENDIR)/cpu
461 CGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
462 CGENFLAGS = -v
463
464 CGENDEPS = \
465 $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
466 $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \
467 $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \
468 $(CGENDIR)/opc-opinst.scm \
469 cgen-asm.in cgen-dis.in cgen-ibld.in
470
471 CGEN_CPUS = fr30 frv ip2k m32c m32r mep mt openrisc xc16x xstormy16
472
473 if CGEN_MAINT
474 IP2K_DEPS = stamp-ip2k
475 LM32_DEPS = stamp-lm32
476 M32C_DEPS = stamp-m32c
477 M32R_DEPS = stamp-m32r
478 FR30_DEPS = stamp-fr30
479 FRV_DEPS = stamp-frv
480 MEP_DEPS = stamp-mep
481 MT_DEPS = stamp-mt
482 OPENRISC_DEPS = stamp-openrisc
483 IQ2000_DEPS = stamp-iq2000
484 XC16X_DEPS = stamp-xc16x
485 XSTORMY16_DEPS = stamp-xstormy16
486 else
487 IP2K_DEPS =
488 LM32_DEPS =
489 M32C_DEPS =
490 M32R_DEPS =
491 FR30_DEPS =
492 FRV_DEPS =
493 MEP_DEPS =
494 MT_DEPS =
495 OPENRISC_DEPS =
496 IQ2000_DEPS =
497 XC16X_DEPS =
498 XSTORMY16_DEPS =
499 endif
500
501 run-cgen:
502 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \
503 $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) $(archfile) $(opcfile) \
504 "$(options)" "$(extrafiles)"
505 touch stamp-${prefix}
506 .PHONY: run-cgen
507
508 # Maintainer utility rule to regenerate all cgen files.
509 run-cgen-all:
510 for c in $(CGEN_CPUS) ; \
511 do \
512 $(MAKE) stamp-$$c || exit 1 ; \
513 done
514 .PHONY: run-cgen-all
515
516 # For now, require developers to configure with --enable-cgen-maint.
517 $(srcdir)/ip2k-desc.h $(srcdir)/ip2k-desc.c $(srcdir)/ip2k-opc.h $(srcdir)/ip2k-opc.c $(srcdir)/ip2k-ibld.c $(srcdir)/ip2k-asm.c $(srcdir)/ip2k-dis.c: $(IP2K_DEPS)
518 @true
519 stamp-ip2k: $(CGENDEPS) $(CPUDIR)/ip2k.cpu $(CPUDIR)/ip2k.opc
520 $(MAKE) run-cgen arch=ip2k prefix=ip2k options= \
521 archfile=$(CPUDIR)/ip2k.cpu opcfile=$(CPUDIR)/ip2k.opc extrafiles=
522
523 $(srcdir)lm32-desc.h $(srcdir)/lm32-desc.c $(srcdir)/lm32-opc.h $(srcdir)/lm32-opc.c $(srcdir)/lm32-ibld.c $(srcdir)/lm32-opinst.c $(srcdir)/lm32-asm.c $(srcdir)/lm32-dis.c: $(LM32_DEPS)
524 @true
525 stamp-lm32: $(CGENDEPS) $(srcdir)/../cpu/lm32.cpu $(srcdir)/../cpu/lm32.opc
526 $(MAKE) run-cgen arch=lm32 prefix=lm32 options=opinst \
527 archfile=$(srcdir)/../cpu/lm32.cpu \
528 opcfile=$(srcdir)/../cpu/lm32.opc \
529 extrafiles=opinst
530
531 $(srcdir)/m32c-desc.h $(srcdir)/m32c-desc.c $(srcdir)/m32c-opc.h $(srcdir)/m32c-opc.c $(srcdir)/m32c-ibld.c $(srcdir)/m32c-asm.c $(srcdir)/m32c-dis.c: $(M32C_DEPS)
532 # @true
533 stamp-m32c: $(CGENDEPS) $(srcdir)/../cpu/m32c.cpu $(srcdir)/../cpu/m32c.opc
534 $(MAKE) run-cgen arch=m32c prefix=m32c options= \
535 archfile=$(srcdir)/../cpu/m32c.cpu \
536 opcfile=$(srcdir)/../cpu/m32c.opc extrafiles=
537
538 $(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h $(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c $(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS)
539 @true
540 stamp-m32r: $(CGENDEPS) $(srcdir)/../cpu/m32r.cpu $(srcdir)/../cpu/m32r.opc
541 $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst \
542 archfile=$(srcdir)/../cpu/m32r.cpu \
543 opcfile=$(srcdir)/../cpu/m32r.opc extrafiles=opinst
544
545 $(srcdir)/fr30-desc.h $(srcdir)/fr30-desc.c $(srcdir)/fr30-opc.h $(srcdir)/fr30-opc.c $(srcdir)/fr30-ibld.c $(srcdir)/fr30-asm.c $(srcdir)/fr30-dis.c: $(FR30_DEPS)
546 @true
547 stamp-fr30: $(CGENDEPS) $(CPUDIR)/fr30.cpu $(CPUDIR)/fr30.opc
548 $(MAKE) run-cgen arch=fr30 prefix=fr30 options= \
549 archfile=$(CPUDIR)/fr30.cpu opcfile=$(CPUDIR)/fr30.opc extrafiles=
550
551 $(srcdir)/frv-desc.h $(srcdir)/frv-desc.c $(srcdir)/frv-opc.h $(srcdir)/frv-opc.c $(srcdir)/frv-ibld.c $(srcdir)/frv-asm.c $(srcdir)/frv-dis.c: $(FRV_DEPS)
552 @true
553 stamp-frv: $(CGENDEPS) $(srcdir)/../cpu/frv.cpu $(srcdir)/../cpu/frv.opc
554 $(MAKE) run-cgen arch=frv prefix=frv options= \
555 archfile=$(srcdir)/../cpu/frv.cpu opcfile=$(srcdir)/../cpu/frv.opc extrafiles=
556
557 $(srcdir)/mep-desc.h $(srcdir)/mep-desc.c $(srcdir)/mep-opc.h $(srcdir)/mep-opc.c $(srcdir)/mep-ibld.c $(srcdir)/mep-asm.c $(srcdir)/mep-dis.c: $(MEP_DEPS)
558 @true
559 stamp-mep: $(CGENDEPS) $(CPUDIR)/mep.cpu $(CPUDIR)/mep-default.cpu $(CPUDIR)/mep-core.cpu $(CPUDIR)/mep-h1.cpu $(CPUDIR)/mep-ext-cop.cpu $(CPUDIR)/mep-sample-ucidsp.cpu $(CPUDIR)/mep-rhcop.cpu $(CPUDIR)/mep-fmax.cpu $(CPUDIR)/mep.opc
560 $(MAKE) run-cgen arch=mep prefix=mep options= \
561 archfile=$(CPUDIR)/mep.cpu opcfile=$(CPUDIR)/mep.opc extrafiles=
562
563 $(srcdir)/mt-desc.h $(srcdir)/mt-desc.c $(srcdir)/mt-opc.h $(srcdir)/mt-opc.c $(srcdir)/mt-ibld.c $(srcdir)/mt-asm.c $(srcdir)/mt-dis.c: $(MT_DEPS)
564 @true
565 stamp-mt: $(CGENDEPS) $(srcdir)/../cpu/mt.cpu $(srcdir)/../cpu/mt.opc
566 $(MAKE) run-cgen arch=mt prefix=mt options= \
567 archfile=$(srcdir)/../cpu/mt.cpu \
568 opcfile=$(srcdir)/../cpu/mt.opc extrafiles=
569
570 $(srcdir)/openrisc-desc.h $(srcdir)/openrisc-desc.c $(srcdir)/openrisc-opc.h $(srcdir)/openrisc-opc.c $(srcdir)/openrisc-ibld.c $(srcdir)/openrisc-asm.c $(srcdir)/openrisc-dis.c: $(OPENRISC_DEPS)
571 @true
572 stamp-openrisc: $(CGENDEPS) $(CPUDIR)/openrisc.cpu $(CPUDIR)/openrisc.opc
573 $(MAKE) run-cgen arch=openrisc prefix=openrisc options= \
574 archfile=$(CPUDIR)/openrisc.cpu opcfile=$(CPUDIR)/openrisc.opc extrafiles=
575
576 $(srcdir)/iq2000-desc.h $(srcdir)/iq2000-desc.c $(srcdir)/iq2000-opc.h $(srcdir)/iq2000-opc.c $(srcdir)/iq2000-ibld.c $(srcdir)/iq2000-asm.c $(srcdir)/iq2000-dis.c: $(IQ2000_DEPS)
577 @true
578 stamp-iq2000: $(CGENDEPS) $(srcdir)/../cpu/iq2000.cpu \
579 $(srcdir)/../cpu/iq2000.opc $(srcdir)/../cpu/iq2000m.cpu \
580 $(srcdir)/../cpu/iq10.cpu
581 $(MAKE) run-cgen arch=iq2000 prefix=iq2000 options= \
582 archfile=$(srcdir)/../cpu/iq2000.cpu \
583 opcfile=$(srcdir)/../cpu/iq2000.opc extrafiles=
584
585 $(srcdir)/xstormy16-desc.h $(srcdir)/xstormy16-desc.c $(srcdir)/xstormy16-opc.h $(srcdir)/xstormy16-opc.c $(srcdir)/xstormy16-ibld.c $(srcdir)/xstormy16-asm.c $(srcdir)/xstormy16-dis.c: $(XSTORMY16_DEPS)
586 @true
587 stamp-xstormy16: $(CGENDEPS) $(CPUDIR)/xstormy16.cpu $(CPUDIR)/xstormy16.opc
588 $(MAKE) run-cgen arch=xstormy16 prefix=xstormy16 options= \
589 archfile=$(CPUDIR)/xstormy16.cpu opcfile=$(CPUDIR)/xstormy16.opc extrafiles=
590
591 $(srcdir)/xc16x-desc.h $(srcdir)/xc16x-desc.c $(srcdir)/xc16x-opc.h $(srcdir)/xc16x-opc.c $(srcdir)/xc16x-ibld.c $(srcdir)/xc16x-asm.c $(srcdir)/xc16x-dis.c: $(XC16X_DEPS)
592 @true
593 stamp-xc16x: $(CGENDEPS) $(CPUDIR)/xc16x.cpu $(CPUDIR)/xc16x.opc
594 $(MAKE) run-cgen arch=xc16x prefix=xc16x options= \
595 archfile=$(CPUDIR)/xc16x.cpu opcfile=$(CPUDIR)/xc16x.opc extrafiles=
596
597 i386-gen: i386-gen.o
598 $(LINK) i386-gen.o $(LIBIBERTY)
599
600 $(srcdir)/i386-tbl.h: $(srcdir)/i386-init.h
601 @echo $@
602
603 $(srcdir)/i386-init.h: @MAINT@ i386-gen i386-opc.tbl i386-reg.tbl
604 ./i386-gen --srcdir $(srcdir)
605
606 ia64-gen: ia64-gen.o
607 $(LINK) ia64-gen.o $(LIBIBERTY)
608
609 # Don't wrap the line below, as @MAINT@ can be expanded to '#'.
610 # Some make versions don't handle line continuations in comments.
611 $(srcdir)/ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
612 ./ia64-gen --srcdir $(srcdir) > $@
613
614 s390-mkopc: s390-mkopc.c
615 $(CC_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c
616
617 s390-opc.tab: s390-mkopc s390-opc.txt
618 ./s390-mkopc < $(srcdir)/s390-opc.txt > s390-opc.tab
619
620 s390-opc.lo: s390-opc.tab
621
622 sh-dis.lo: sh-dis.c
623 if am__fastdepCC
624 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
625 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
626 else
627 if AMDEP
628 source='sh-dis.c' object='$@' libtool=yes @AMDEPBACKSLASH@
629 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
630 endif
631 $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
632 endif
This page took 0.062806 seconds and 5 git commands to generate.