1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
7 INCDIR = $(srcdir)/../include
8 BFDDIR = $(srcdir)/../bfd
11 WARN_CFLAGS = @WARN_CFLAGS@
12 AM_CFLAGS = $(WARN_CFLAGS)
14 lib_LTLIBRARIES = libopcodes.la
16 # This is where bfd.h lives.
19 # This is where libiberty lives.
20 LIBIBERTY = ../libiberty/libiberty.a
25 fr30-desc.h fr30-opc.h \
27 m32r-desc.h m32r-opc.h \
36 # C source files that correspond to .o's.
188 OFILES = @BFD_MACHINES@
190 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
192 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
193 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
195 libopcodes_la_SOURCES = dis-buf.c disassemble.c
196 libopcodes_la_DEPENDENCIES = $(OFILES)
197 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
198 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
200 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
201 # the build directory so that we don't have to convert all the
202 # programs that use libopcodes.a simultaneously. This is a hack which
203 # should be removed if everything else starts using libtool. FIXME.
205 noinst_LIBRARIES = libopcodes.a
207 stamp-lib: libopcodes.la
208 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
209 if [ -f $$libtooldir/libopcodes.a ]; then \
210 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
211 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
215 libopcodes.a: stamp-lib ; @true
217 POTFILES = $(HFILES) $(CFILES)
218 po/POTFILES.in: @MAINT@ Makefile
219 for file in $(POTFILES); do echo $$file; done | sort > tmp \
220 && mv tmp $(srcdir)/po/POTFILES.in
222 # We should reconfigure whenever bfd/configure.in changes, because
223 # that's where the version number comes from.
224 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
225 $(SHELL) ./config.status --recheck
228 libopcodes.a stamp-lib dep.sed DEP DEPA DEP1 DEP2
232 # The start marker is written this way to pass through automake unscathed.
236 ia64-ic.tbl: $(srcdir)/ia64-ic.tbl
237 $(LN_S) -f $(srcdir)/ia64-ic.tbl
238 ia64-raw.tbl: $(srcdir)/ia64-raw.tbl
239 $(LN_S) -f $(srcdir)/ia64-raw.tbl
240 ia64-waw.tbl: $(srcdir)/ia64-waw.tbl
241 $(LN_S) -f $(srcdir)/ia64-waw.tbl
242 ia64-war.tbl: $(srcdir)/ia64-war.tbl
243 $(LN_S) -f $(srcdir)/ia64-war.tbl
246 $(LINK) ia64-gen.o $(LIBIBERTY)
248 ia64-gen.o: ia64-gen.c ia64-opc.c ia64-opc-a.c ia64-opc-b.c ia64-opc-f.c \
249 ia64-opc-i.c ia64-opc-m.c ia64-opc-d.c ia64-opc.h
251 ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
252 ./ia64-gen > $(srcdir)/ia64-asmtab.c
254 # This dependency stuff is copied from BFD.
256 DEP: dep.sed $(CFILES) $(HFILES) config.h
258 $(MAKE) MKDEP="$(MKDEP)" DEP1
259 sed -f dep.sed < DEP1 > DEPA
260 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
261 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
262 echo 'make DEP failed!'; exit 1; \
268 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
269 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
270 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
273 dep.sed: dep-in.sed config.status
274 sed <$(srcdir)/dep-in.sed >dep.sed \
275 -e 's!@BFD_H@!$(BFD_H)!' \
276 -e 's!@INCDIR@!$(INCDIR)!' \
277 -e 's!@BFDDIR@!$(BFDDIR)!' \
278 -e 's!@SRCDIR@!$(srcdir)!'
281 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
282 cat DEP >> tmp-Makefile
283 $(srcdir)/../move-if-change tmp-Makefile Makefile
286 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
287 cat DEP >> tmp-Makefile.in
288 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
291 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
292 cat DEP >> tmp-Makefile.am
293 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
295 .PHONY: dep dep-in dep-am
297 # What appears below is generated by a hacked mkdep using gcc -MM.
299 # DO NOT DELETE THIS LINE -- mkdep uses it.
300 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
301 a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
302 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h
303 alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
304 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
305 alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
306 $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h
307 arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
308 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \
309 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
310 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \
311 $(INCDIR)/elf/reloc-macros.h opintl.h
312 arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
313 $(INCDIR)/opcode/arc.h opintl.h
314 arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
315 $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \
316 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
317 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
318 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
319 avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
320 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h $(INCDIR)/opcode/avr.h
321 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
322 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
324 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
325 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
326 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
327 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
328 cris-dis.lo: cris-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
329 $(INCDIR)/ansidecl.h sysdep.h config.h $(INCDIR)/opcode/cris.h \
330 $(INCDIR)/libiberty.h
331 cris-opc.lo: cris-opc.c $(INCDIR)/opcode/cris.h
332 d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
333 $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H)
334 d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
335 $(INCDIR)/opcode/d10v.h
336 d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
337 $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \
339 d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
340 $(INCDIR)/opcode/d30v.h
341 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \
342 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
343 disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \
344 $(INCDIR)/dis-asm.h $(BFD_H)
345 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
346 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
348 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
349 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
351 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
352 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
353 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
354 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
355 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
356 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
357 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
358 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
360 h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
361 $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \
363 h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
364 h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
365 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
366 $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
367 i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
368 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h
369 i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
370 $(INCDIR)/opcode/i370.h
371 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
372 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
373 i860-dis.lo: i860-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
374 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/i860.h
375 i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
376 $(INCDIR)/dis-asm.h $(BFD_H)
377 ia64-dis.lo: ia64-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
378 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ia64.h
379 ia64-opc-a.lo: ia64-opc-a.c ia64-opc.h $(INCDIR)/opcode/ia64.h
380 ia64-opc-b.lo: ia64-opc-b.c ia64-opc.h $(INCDIR)/opcode/ia64.h
381 ia64-opc-f.lo: ia64-opc-f.c ia64-opc.h $(INCDIR)/opcode/ia64.h
382 ia64-opc-i.lo: ia64-opc-i.c ia64-opc.h $(INCDIR)/opcode/ia64.h
383 ia64-opc-m.lo: ia64-opc-m.c ia64-opc.h $(INCDIR)/opcode/ia64.h
384 ia64-opc-d.lo: ia64-opc-d.c
385 ia64-opc.lo: ia64-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
386 sysdep.h config.h ia64-asmtab.h $(INCDIR)/opcode/ia64.h \
388 ia64-gen.lo: ia64-gen.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
389 sysdep.h config.h ia64-opc.h $(INCDIR)/opcode/ia64.h \
390 ia64-opc-a.c ia64-opc-i.c ia64-opc-m.c ia64-opc-b.c \
391 ia64-opc-f.c ia64-opc-x.c ia64-opc-d.c
392 ia64-asmtab.lo: ia64-asmtab.c
393 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
394 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
396 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
397 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
399 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
400 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
401 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
402 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
403 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
404 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
405 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
406 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
408 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \
409 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
411 m68hc11-dis.lo: m68hc11-dis.c $(INCDIR)/ansidecl.h \
412 $(INCDIR)/opcode/m68hc11.h $(INCDIR)/dis-asm.h $(BFD_H)
413 m68hc11-opc.lo: m68hc11-opc.c $(INCDIR)/ansidecl.h \
414 $(INCDIR)/opcode/m68hc11.h
415 m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
416 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \
417 opintl.h $(INCDIR)/opcode/m68k.h
418 m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
419 $(INCDIR)/opcode/m68k.h
420 m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
421 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \
423 mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
424 mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
425 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
426 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \
427 opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
428 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
429 $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
430 mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
431 $(INCDIR)/opcode/mips.h
432 mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
433 $(INCDIR)/opcode/mips.h
434 m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
435 $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \
437 m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
438 $(INCDIR)/opcode/mn10200.h
439 m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
440 $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \
442 m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
443 $(INCDIR)/opcode/mn10300.h
444 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
445 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
447 pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
448 $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H)
449 pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
450 $(INCDIR)/opcode/pj.h
451 ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
452 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
453 ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
454 $(INCDIR)/opcode/ppc.h opintl.h
455 sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
456 sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
457 sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
458 $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \
459 $(INCDIR)/libiberty.h opintl.h
460 sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
461 $(INCDIR)/opcode/sparc.h
462 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
463 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h
464 tic54x-dis.lo: tic54x-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
465 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic54x.h \
466 $(INCDIR)/coff/tic54x.h $(INCDIR)/coff/ti.h
467 tic54x-opc.lo: tic54x-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
468 $(INCDIR)/opcode/tic54x.h
469 tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
470 $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H)
471 tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
472 $(INCDIR)/opcode/tic80.h
473 v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
474 $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \
476 v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
477 $(INCDIR)/opcode/v850.h opintl.h
478 vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
479 $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H)
480 w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
481 w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
482 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
483 $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h
484 z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h
485 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY