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.
144 OFILES = @BFD_MACHINES@
146 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
148 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
149 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
151 libopcodes_la_SOURCES = dis-buf.c disassemble.c
152 libopcodes_la_DEPENDENCIES = $(OFILES)
153 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
154 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
156 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
157 # the build directory so that we don't have to convert all the
158 # programs that use libopcodes.a simultaneously. This is a hack which
159 # should be removed if everything else starts using libtool. FIXME.
161 noinst_LIBRARIES = libopcodes.a
163 stamp-lib: libopcodes.la
164 if [ -f .libs/libopcodes.a ]; then \
165 cp .libs/libopcodes.a libopcodes.tmp; \
166 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
170 libopcodes.a: stamp-lib ; @true
172 POTFILES = $(HFILES) $(CFILES)
173 po/POTFILES.in: @MAINT@ Makefile
174 for file in $(POTFILES); do echo $$file; done | sort > tmp \
175 && mv tmp $(srcdir)/po/POTFILES.in
177 # We should reconfigure whenever bfd/configure.in changes, because
178 # that's where the version number comes from.
179 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
180 $(SHELL) ./config.status --recheck
183 libopcodes.a stamp-lib dep.sed .dep .dep1
187 # The start marker is written this way to pass through automake unscathed.
192 # This dependency stuff is copied from BFD.
194 .dep: dep.sed $(CFILES) $(HFILES) config.h
196 $(MAKE) DEP=$(DEP) .dep1
197 sed -f dep.sed < .dep1 > .dep
201 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
203 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
204 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
206 $(srcdir)/../move-if-change .dep2 .dep1
208 dep.sed: dep-in.sed config.status
209 sed <$(srcdir)/dep-in.sed >dep.sed \
210 -e 's!@BFD_H@!$(BFD_H)!' \
211 -e 's!@INCDIR@!$(INCDIR)!' \
212 -e 's!@BFDDIR@!$(BFDDIR)!' \
213 -e 's!@SRCDIR@!$(srcdir)!'
216 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
217 cat .dep >> tmp-Makefile
218 $(srcdir)/../move-if-change tmp-Makefile Makefile
221 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
222 cat .dep >> tmp-Makefile.in
223 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
226 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
227 cat .dep >> tmp-Makefile.am
228 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
230 .PHONY: dep dep-in dep-am
232 # What appears below is generated by a hacked mkdep using gcc -MM.
234 # DO NOT DELETE THIS LINE -- mkdep uses it.
235 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
236 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
237 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
238 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
239 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
240 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
242 arc-dis.lo: arc-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
243 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h $(BFDDIR)/elf-bfd.h \
244 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
245 $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/reloc-macros.h \
247 arc-opc.lo: arc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h \
249 arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
250 $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
251 $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \
252 $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/arm.h \
253 $(INCDIR)/elf/reloc-macros.h
254 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
255 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
257 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
258 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
259 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
260 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
261 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
262 $(INCDIR)/dis-asm.h $(BFD_H)
263 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
264 d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \
265 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
266 d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h
267 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
269 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
270 $(INCDIR)/dis-asm.h $(BFD_H)
271 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \
272 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
274 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \
275 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
277 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
278 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
280 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
281 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
283 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(BFD_H) \
284 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
286 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
287 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
288 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
289 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
290 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
291 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
292 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
293 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
294 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
296 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
297 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
299 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \
300 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
302 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
303 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
305 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
306 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
308 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(BFD_H) \
309 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
311 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(BFD_H) \
312 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
314 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
315 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \
316 $(INCDIR)/opcode/m68k.h
317 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
318 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
319 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h
320 mcore-dis.lo: mcore-dis.c mcore-opc.h $(INCDIR)/ansidecl.h \
321 $(INCDIR)/dis-asm.h $(BFD_H)
322 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
323 $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \
324 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
325 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
326 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
327 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
328 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
329 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
330 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
331 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
332 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
333 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
334 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
335 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
337 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
338 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
339 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
341 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
343 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
344 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
345 $(BFD_H) $(INCDIR)/libiberty.h opintl.h
346 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
347 tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
348 $(BFD_H) $(INCDIR)/opcode/tic30.h
349 tic80-dis.lo: tic80-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h \
350 $(INCDIR)/dis-asm.h $(BFD_H)
351 tic80-opc.lo: tic80-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h
352 v850-dis.lo: v850-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \
353 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
354 v850-opc.lo: v850-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \
356 vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \
357 $(BFD_H) $(INCDIR)/ansidecl.h
358 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
359 $(BFD_H) $(INCDIR)/ansidecl.h
360 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
362 z8kgen.lo: z8kgen.c sysdep.h config.h
363 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY