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 \
31 # C source files that correspond to .o's.
157 OFILES = @BFD_MACHINES@
159 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
161 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
162 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
164 libopcodes_la_SOURCES = dis-buf.c disassemble.c
165 libopcodes_la_DEPENDENCIES = $(OFILES)
166 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
167 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
169 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
170 # the build directory so that we don't have to convert all the
171 # programs that use libopcodes.a simultaneously. This is a hack which
172 # should be removed if everything else starts using libtool. FIXME.
174 noinst_LIBRARIES = libopcodes.a
176 stamp-lib: libopcodes.la
177 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
178 if [ -f $$libtooldir/libopcodes.a ]; then \
179 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
180 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
184 libopcodes.a: stamp-lib ; @true
186 POTFILES = $(HFILES) $(CFILES)
187 po/POTFILES.in: @MAINT@ Makefile
188 for file in $(POTFILES); do echo $$file; done | sort > tmp \
189 && mv tmp $(srcdir)/po/POTFILES.in
191 # We should reconfigure whenever bfd/configure.in changes, because
192 # that's where the version number comes from.
193 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
194 $(SHELL) ./config.status --recheck
197 libopcodes.a stamp-lib dep.sed DEP DEP1 DEP2
201 # The start marker is written this way to pass through automake unscathed.
206 # This dependency stuff is copied from BFD.
208 DEP: dep.sed $(CFILES) $(HFILES) config.h
210 $(MAKE) MKDEP="$(MKDEP)" DEP1
211 sed -f dep.sed < DEP1 > $@
212 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
215 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
216 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
217 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
220 dep.sed: dep-in.sed config.status
221 sed <$(srcdir)/dep-in.sed >dep.sed \
222 -e 's!@BFD_H@!$(BFD_H)!' \
223 -e 's!@INCDIR@!$(INCDIR)!' \
224 -e 's!@BFDDIR@!$(BFDDIR)!' \
225 -e 's!@SRCDIR@!$(srcdir)!'
228 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
229 cat DEP >> tmp-Makefile
230 $(srcdir)/../move-if-change tmp-Makefile Makefile
233 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
234 cat DEP >> tmp-Makefile.in
235 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
238 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
239 cat DEP >> tmp-Makefile.am
240 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
242 .PHONY: dep dep-in dep-am
244 # What appears below is generated by a hacked mkdep using gcc -MM.
246 # DO NOT DELETE THIS LINE -- mkdep uses it.
247 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
248 a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
249 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h
250 alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
251 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
252 alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
253 $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h
254 arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
255 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \
256 $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \
257 $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \
258 $(INCDIR)/elf/reloc-macros.h opintl.h
259 arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
260 $(INCDIR)/opcode/arc.h opintl.h
261 arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
262 $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \
263 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
264 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
265 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
266 avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
267 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
268 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
269 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
271 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
272 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
273 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
274 $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
275 d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
276 $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H)
277 d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
278 $(INCDIR)/opcode/d10v.h
279 d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
280 $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \
282 d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
283 $(INCDIR)/opcode/d30v.h
284 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \
285 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
286 disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \
287 $(INCDIR)/dis-asm.h $(BFD_H)
288 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
289 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
291 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
292 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
294 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
295 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
296 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
297 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
298 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \
299 $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h
300 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
301 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
303 h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
304 $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \
306 h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
307 h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
308 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
309 $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
310 i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
311 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h
312 i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
313 $(INCDIR)/opcode/i370.h
314 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
315 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
316 i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
317 $(INCDIR)/dis-asm.h $(BFD_H)
318 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \
319 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
321 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
322 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
324 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
325 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
326 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
327 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \
328 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \
329 $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h
330 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
331 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
333 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \
334 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
336 m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
337 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \
338 opintl.h $(INCDIR)/opcode/m68k.h
339 m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
340 $(INCDIR)/opcode/m68k.h
341 m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
342 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \
344 mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
345 mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
346 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
347 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \
348 opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
349 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
350 $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
351 mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
352 $(INCDIR)/opcode/mips.h
353 mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
354 $(INCDIR)/opcode/mips.h
355 m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
356 $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \
358 m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
359 $(INCDIR)/opcode/mn10200.h
360 m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
361 $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \
363 m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
364 $(INCDIR)/opcode/mn10300.h
365 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
366 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
368 pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
369 $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H)
370 pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
371 $(INCDIR)/opcode/pj.h
372 ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
373 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
374 ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
375 $(INCDIR)/opcode/ppc.h opintl.h
376 sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
377 sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
378 sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
379 $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \
380 $(INCDIR)/libiberty.h opintl.h
381 sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
382 $(INCDIR)/opcode/sparc.h
383 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
384 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h
385 tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
386 $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H)
387 tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
388 $(INCDIR)/opcode/tic80.h
389 v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
390 $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \
392 v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \
393 $(INCDIR)/opcode/v850.h opintl.h
394 vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
395 $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H)
396 w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
397 w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H)
398 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
399 $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h
400 z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h
401 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY