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.
22 fr30-desc.h fr30-opc.h \
24 m32r-desc.h m32r-opc.h \
33 # C source files that correspond to .o's.
175 OFILES = @BFD_MACHINES@
177 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
179 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
180 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
182 libopcodes_la_SOURCES = dis-buf.c disassemble.c
183 libopcodes_la_DEPENDENCIES = $(OFILES)
184 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
185 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
187 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
188 # the build directory so that we don't have to convert all the
189 # programs that use libopcodes.a simultaneously. This is a hack which
190 # should be removed if everything else starts using libtool. FIXME.
192 noinst_LIBRARIES = libopcodes.a
194 stamp-lib: libopcodes.la
195 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
196 if [ -f $$libtooldir/libopcodes.a ]; then \
197 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
198 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
202 libopcodes.a: stamp-lib ; @true
204 POTFILES = $(HFILES) $(CFILES)
205 po/POTFILES.in: @MAINT@ Makefile
206 for file in $(POTFILES); do echo $$file; done | sort > tmp \
207 && mv tmp $(srcdir)/po/POTFILES.in
209 # We should reconfigure whenever bfd/configure.in changes, because
210 # that's where the version number comes from.
211 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
212 $(SHELL) ./config.status --recheck
215 libopcodes.a stamp-lib dep.sed DEP DEP1 DEP2
219 # The start marker is written this way to pass through automake unscathed.
223 ia64-ic.tbl: $(srcdir)/ia64-ic.tbl
224 $(LN_S) -f $(srcdir)/ia64-ic.tbl
225 ia64-raw.tbl: $(srcdir)/ia64-raw.tbl
226 $(LN_S) -f $(srcdir)/ia64-raw.tbl
227 ia64-waw.tbl: $(srcdir)/ia64-waw.tbl
228 $(LN_S) -f $(srcdir)/ia64-waw.tbl
229 ia64-war.tbl: $(srcdir)/ia64-war.tbl
230 $(LN_S) -f $(srcdir)/ia64-war.tbl
233 $(LINK) ia64-gen.o $(LIBIBERTY)
235 ia64-gen.o: ia64-gen.c ia64-opc.c ia64-opc-a.c ia64-opc-b.c ia64-opc-f.c \
236 ia64-opc-i.c ia64-opc-m.c ia64-opc-d.c ia64-opc.h
238 ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.tbl ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
239 ./ia64-gen > $(srcdir)/ia64-asmtab.c
241 # This dependency stuff is copied from BFD.
243 DEP: dep.sed $(CFILES) $(HFILES) config.h
245 $(MAKE) MKDEP="$(MKDEP)" DEP1
246 sed -f dep.sed < DEP1 > $@
247 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
250 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
251 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
252 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
255 dep.sed: dep-in.sed config.status
256 sed <$(srcdir)/dep-in.sed >dep.sed \
257 -e 's!@BFD_H@!$(BFD_H)!' \
258 -e 's!@INCDIR@!$(INCDIR)!' \
259 -e 's!@BFDDIR@!$(BFDDIR)!' \
260 -e 's!@SRCDIR@!$(srcdir)!'
263 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
264 cat DEP >> tmp-Makefile
265 $(srcdir)/../move-if-change tmp-Makefile Makefile
268 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
269 cat DEP >> tmp-Makefile.in
270 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
273 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
274 cat DEP >> tmp-Makefile.am
275 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
277 .PHONY: dep dep-in dep-am
279 # What appears below is generated by a hacked mkdep using gcc -MM.
281 # DO NOT DELETE THIS LINE -- mkdep uses it.
282 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
283 a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
284 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h
285 alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
286 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
287 alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
288 $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h
289 arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
290 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \
291 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
292 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \
293 $(INCDIR)/elf/reloc-macros.h opintl.h
294 arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
295 $(INCDIR)/opcode/arc.h opintl.h
296 arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
297 $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \
298 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
299 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
300 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
301 avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
302 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
303 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
304 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
306 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
307 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
308 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
309 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
310 d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
311 $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H)
312 d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
313 $(INCDIR)/opcode/d10v.h
314 d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
315 $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \
317 d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
318 $(INCDIR)/opcode/d30v.h
319 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \
320 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
321 disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \
322 $(INCDIR)/dis-asm.h $(BFD_H)
323 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
324 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
326 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
327 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
329 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
330 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
331 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
332 fr30-ibld.lo: fr30-ibld.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-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
336 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
338 h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
339 $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \
341 h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
342 h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
343 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
344 $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
345 i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
346 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h
347 i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
348 $(INCDIR)/opcode/i370.h
349 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
350 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
351 i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
352 $(INCDIR)/dis-asm.h $(BFD_H)
353 ia64-dis.lo: ia64-dis.c $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ia64.h $(BFD_H)
354 ia64-opc.lo: $(INCDIR)/opcode/ia64.h $(BFD_H) $(INCDIR)/libiberty.h \
355 $(INCDIR)/ansidecl.h sysdep.h ia64-asmtab.h ia64-asmtab.c
356 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
357 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
359 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
360 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
362 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
363 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
364 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
365 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
366 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
367 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
368 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
369 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
371 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \
372 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
374 m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
375 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \
376 opintl.h $(INCDIR)/opcode/m68k.h
377 m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
378 $(INCDIR)/opcode/m68k.h
379 m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
380 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \
382 mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
383 mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
384 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
385 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \
386 opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
387 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
388 $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
389 mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
390 $(INCDIR)/opcode/mips.h
391 mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
392 $(INCDIR)/opcode/mips.h
393 m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
394 $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \
396 m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
397 $(INCDIR)/opcode/mn10200.h
398 m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
399 $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \
401 m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
402 $(INCDIR)/opcode/mn10300.h
403 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
404 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
406 pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \
407 $(BFD_H) $(INCDIR)/ansidecl.h
408 pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h
409 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
410 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
411 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
413 pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
414 $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H)
415 pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
416 $(INCDIR)/opcode/pj.h
417 ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
418 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
419 ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
420 $(INCDIR)/opcode/ppc.h opintl.h
421 sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
422 sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
423 sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
424 $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \
425 $(INCDIR)/libiberty.h opintl.h
426 sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
427 $(INCDIR)/opcode/sparc.h
428 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
429 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h
430 tic54x-dis.lo: tic54x-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
431 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic54x.h
432 tic54x-opc.lo: tic54x-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
433 $(INCDIR)/opcode/tic54x.h
434 tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
435 $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H)
436 tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
437 $(INCDIR)/opcode/tic80.h
438 v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
439 $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \
441 v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
442 $(INCDIR)/opcode/v850.h opintl.h
443 vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
444 $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H)
445 w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
446 w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
447 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
448 $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h
449 z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h
450 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY