1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
7 INCDIR = $(srcdir)/../include
8 BFDDIR = $(srcdir)/../bfd
11 lib_LTLIBRARIES = libopcodes.la
13 # This is where bfd.h lives.
19 fr30-desc.h fr30-opc.h \
21 m32r-desc.h m32r-opc.h \
28 # C source files that correspond to .o's.
152 OFILES = @BFD_MACHINES@
154 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
156 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
157 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
159 libopcodes_la_SOURCES = dis-buf.c disassemble.c
160 libopcodes_la_DEPENDENCIES = $(OFILES)
161 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
162 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
164 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
165 # the build directory so that we don't have to convert all the
166 # programs that use libopcodes.a simultaneously. This is a hack which
167 # should be removed if everything else starts using libtool. FIXME.
169 noinst_LIBRARIES = libopcodes.a
171 stamp-lib: libopcodes.la
172 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
173 if [ -f $$libtooldir/libopcodes.a ]; then \
174 cp $$libtooldir/libopcodes.a libopcodes.tmp; \
175 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
179 libopcodes.a: stamp-lib ; @true
181 POTFILES = $(HFILES) $(CFILES)
182 po/POTFILES.in: @MAINT@ Makefile
183 for file in $(POTFILES); do echo $$file; done | sort > tmp \
184 && mv tmp $(srcdir)/po/POTFILES.in
186 # We should reconfigure whenever bfd/configure.in changes, because
187 # that's where the version number comes from.
188 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
189 $(SHELL) ./config.status --recheck
192 libopcodes.a stamp-lib dep.sed DEP DEP1
196 # The start marker is written this way to pass through automake unscathed.
201 # This dependency stuff is copied from BFD.
203 DEP: dep.sed $(CFILES) $(HFILES) config.h
205 $(MAKE) MKDEP=$(MKDEP) DEP1
206 sed -f dep.sed < DEP1 > DEP
210 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
212 $(MKDEP) -f DEP2a $(INCLUDES) $(CFLAGS) $?
213 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < DEP2a >> DEP2
215 $(srcdir)/../move-if-change DEP2 DEP1
217 dep.sed: dep-in.sed config.status
218 sed <$(srcdir)/dep-in.sed >dep.sed \
219 -e 's!@BFD_H@!$(BFD_H)!' \
220 -e 's!@INCDIR@!$(INCDIR)!' \
221 -e 's!@BFDDIR@!$(BFDDIR)!' \
222 -e 's!@SRCDIR@!$(srcdir)!'
225 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
226 cat DEP >> tmp-Makefile
227 $(srcdir)/../move-if-change tmp-Makefile Makefile
230 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
231 cat DEP >> tmp-Makefile.in
232 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
235 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
236 cat DEP >> tmp-Makefile.am
237 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
239 .PHONY: dep dep-in dep-am
241 # What appears below is generated by a hacked mkdep using gcc -MM.
243 # DO NOT DELETE THIS LINE -- mkdep uses it.
244 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
245 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
246 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
247 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
248 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
249 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
251 arc-dis.lo: arc-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
252 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h $(BFDDIR)/elf-bfd.h \
253 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
254 $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/reloc-macros.h \
256 arc-opc.lo: arc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h \
258 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
259 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
260 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
261 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
262 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
263 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
264 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
266 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
267 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
268 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
269 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
270 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
271 $(INCDIR)/dis-asm.h $(BFD_H)
272 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
273 d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \
274 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
275 d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h
276 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
278 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
279 $(INCDIR)/dis-asm.h $(BFD_H)
280 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \
281 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
283 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \
284 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
286 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
287 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
289 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
290 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
292 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(BFD_H) \
293 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
295 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
296 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
297 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
298 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
299 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
300 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
301 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
302 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
303 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
305 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
306 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
308 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \
309 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
311 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
312 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
314 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
315 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
317 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(BFD_H) \
318 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
320 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(BFD_H) \
321 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
323 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
324 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \
325 $(INCDIR)/opcode/m68k.h
326 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
327 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
328 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h
329 mcore-dis.lo: mcore-dis.c mcore-opc.h $(INCDIR)/ansidecl.h \
330 $(INCDIR)/dis-asm.h $(BFD_H)
331 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
332 $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \
333 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
334 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
335 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
336 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
337 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
338 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
339 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
340 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
341 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
342 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
343 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
344 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
346 pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \
347 $(BFD_H) $(INCDIR)/ansidecl.h
348 pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h
349 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
350 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
351 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
353 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
355 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
356 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
357 $(BFD_H) $(INCDIR)/libiberty.h opintl.h
358 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
359 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
360 $(BFD_H) $(INCDIR)/opcode/tic30.h
361 tic80-dis.lo: tic80-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h \
362 $(INCDIR)/dis-asm.h $(BFD_H)
363 tic80-opc.lo: tic80-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h
364 v850-dis.lo: v850-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \
365 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
366 v850-opc.lo: v850-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \
368 vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \
369 $(BFD_H) $(INCDIR)/ansidecl.h
370 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
371 $(BFD_H) $(INCDIR)/ansidecl.h
372 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
374 z8kgen.lo: z8kgen.c sysdep.h config.h
375 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY