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