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.
182 OFILES = @BFD_MACHINES@
184 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
186 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
187 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
189 libopcodes_la_SOURCES = dis-buf.c disassemble.c
190 libopcodes_la_DEPENDENCIES = $(OFILES)
191 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
192 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
194 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
195 # the build directory so that we don't have to convert all the
196 # programs that use libopcodes.a simultaneously. This is a hack which
197 # should be removed if everything else starts using libtool. FIXME.
199 noinst_LIBRARIES = libopcodes.a
201 stamp-lib: libopcodes.la
202 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
203 if [ -f $$libtooldir/libopcodes.a ]; then \
204 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
205 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
209 libopcodes.a: stamp-lib ; @true
211 POTFILES = $(HFILES) $(CFILES)
212 po/POTFILES.in: @MAINT@ Makefile
213 for file in $(POTFILES); do echo $$file; done | sort > tmp \
214 && mv tmp $(srcdir)/po/POTFILES.in
216 # We should reconfigure whenever bfd/configure.in changes, because
217 # that's where the version number comes from.
218 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
219 $(SHELL) ./config.status --recheck
222 libopcodes.a stamp-lib dep.sed DEP DEP1 DEP2
226 # The start marker is written this way to pass through automake unscathed.
230 ia64-ic.tbl: $(srcdir)/ia64-ic.tbl
231 $(LN_S) -f $(srcdir)/ia64-ic.tbl
232 ia64-raw.tbl: $(srcdir)/ia64-raw.tbl
233 $(LN_S) -f $(srcdir)/ia64-raw.tbl
234 ia64-waw.tbl: $(srcdir)/ia64-waw.tbl
235 $(LN_S) -f $(srcdir)/ia64-waw.tbl
236 ia64-war.tbl: $(srcdir)/ia64-war.tbl
237 $(LN_S) -f $(srcdir)/ia64-war.tbl
240 $(LINK) ia64-gen.o $(LIBIBERTY)
242 ia64-gen.o: ia64-gen.c ia64-opc.c ia64-opc-a.c ia64-opc-b.c ia64-opc-f.c \
243 ia64-opc-i.c ia64-opc-m.c ia64-opc-d.c ia64-opc.h
245 ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
246 ./ia64-gen > $(srcdir)/ia64-asmtab.c
248 # This dependency stuff is copied from BFD.
250 DEP: dep.sed $(CFILES) $(HFILES) config.h
252 $(MAKE) MKDEP="$(MKDEP)" DEP1
253 sed -f dep.sed < DEP1 > $@
254 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
257 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
258 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
259 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
262 dep.sed: dep-in.sed config.status
263 sed <$(srcdir)/dep-in.sed >dep.sed \
264 -e 's!@BFD_H@!$(BFD_H)!' \
265 -e 's!@INCDIR@!$(INCDIR)!' \
266 -e 's!@BFDDIR@!$(BFDDIR)!' \
267 -e 's!@SRCDIR@!$(srcdir)!'
270 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
271 cat DEP >> tmp-Makefile
272 $(srcdir)/../move-if-change tmp-Makefile Makefile
275 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
276 cat DEP >> tmp-Makefile.in
277 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
280 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
281 cat DEP >> tmp-Makefile.am
282 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
284 .PHONY: dep dep-in dep-am
286 # What appears below is generated by a hacked mkdep using gcc -MM.
288 # DO NOT DELETE THIS LINE -- mkdep uses it.
289 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
290 a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
291 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h
292 alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
293 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
294 alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
295 $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h
296 arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
297 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \
298 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
299 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \
300 $(INCDIR)/elf/reloc-macros.h opintl.h
301 arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
302 $(INCDIR)/opcode/arc.h opintl.h
303 arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
304 $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \
305 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
306 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
307 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
308 avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
309 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h $(INCDIR)/opcode/avr.h
310 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
311 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
313 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
314 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
315 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
316 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
317 d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
318 $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H)
319 d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
320 $(INCDIR)/opcode/d10v.h
321 d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
322 $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \
324 d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
325 $(INCDIR)/opcode/d30v.h
326 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \
327 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
328 disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \
329 $(INCDIR)/dis-asm.h $(BFD_H)
330 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
331 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
333 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
334 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
336 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
337 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
338 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
339 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
340 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
341 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
342 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
343 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
345 h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
346 $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \
348 h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
349 h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
350 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
351 $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
352 i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
353 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h
354 i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
355 $(INCDIR)/opcode/i370.h
356 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
357 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
358 i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
359 $(INCDIR)/dis-asm.h $(BFD_H)
360 ia64-dis.lo: ia64-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
361 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ia64.h
362 ia64-opc-a.lo: ia64-opc-a.c ia64-opc.h $(INCDIR)/opcode/ia64.h
363 ia64-opc-b.lo: ia64-opc-b.c ia64-opc.h $(INCDIR)/opcode/ia64.h
364 ia64-opc-f.lo: ia64-opc-f.c ia64-opc.h $(INCDIR)/opcode/ia64.h
365 ia64-opc-i.lo: ia64-opc-i.c ia64-opc.h $(INCDIR)/opcode/ia64.h
366 ia64-opc-m.lo: ia64-opc-m.c ia64-opc.h $(INCDIR)/opcode/ia64.h
367 ia64-opc-d.lo: ia64-opc-d.c
368 ia64-opc.lo: ia64-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
369 sysdep.h config.h ia64-asmtab.h $(INCDIR)/opcode/ia64.h \
371 ia64-gen.lo: ia64-gen.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
372 sysdep.h config.h ia64-opc.h $(INCDIR)/opcode/ia64.h \
373 ia64-opc-a.c ia64-opc-i.c ia64-opc-m.c ia64-opc-b.c \
374 ia64-opc-f.c ia64-opc-x.c ia64-opc-d.c
375 ia64-asmtab.lo: ia64-asmtab.c
376 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
377 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
379 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
380 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
382 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
383 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
384 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
385 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
386 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
387 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
388 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
389 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
391 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \
392 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
394 m68hc11-dis.lo: m68hc11-dis.c $(INCDIR)/ansidecl.h \
395 $(INCDIR)/opcode/m68hc11.h $(INCDIR)/dis-asm.h $(BFD_H)
396 m68hc11-opc.lo: m68hc11-opc.c $(INCDIR)/ansidecl.h \
397 $(INCDIR)/opcode/m68hc11.h
398 m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
399 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \
400 opintl.h $(INCDIR)/opcode/m68k.h
401 m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
402 $(INCDIR)/opcode/m68k.h
403 m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
404 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \
406 mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
407 mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
408 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
409 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \
410 opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
411 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
412 $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
413 mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
414 $(INCDIR)/opcode/mips.h
415 mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
416 $(INCDIR)/opcode/mips.h
417 m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
418 $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \
420 m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
421 $(INCDIR)/opcode/mn10200.h
422 m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
423 $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \
425 m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
426 $(INCDIR)/opcode/mn10300.h
427 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
428 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
430 pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
431 $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H)
432 pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
433 $(INCDIR)/opcode/pj.h
434 ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
435 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
436 ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
437 $(INCDIR)/opcode/ppc.h opintl.h
438 sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
439 sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
440 sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
441 $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \
442 $(INCDIR)/libiberty.h opintl.h
443 sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
444 $(INCDIR)/opcode/sparc.h
445 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
446 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h
447 tic54x-dis.lo: tic54x-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
448 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic54x.h \
449 $(INCDIR)/coff/tic54x.h $(INCDIR)/coff/ti.h
450 tic54x-opc.lo: tic54x-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
451 $(INCDIR)/opcode/tic54x.h
452 tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
453 $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H)
454 tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
455 $(INCDIR)/opcode/tic80.h
456 v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
457 $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \
459 v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
460 $(INCDIR)/opcode/v850.h opintl.h
461 vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
462 $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H)
463 w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
464 w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
465 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
466 $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h
467 z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h
468 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY