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