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.
140 OFILES = @BFD_MACHINES@
142 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
144 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
145 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
147 libopcodes_la_SOURCES = dis-buf.c disassemble.c
148 libopcodes_la_DEPENDENCIES = $(OFILES)
149 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
150 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
152 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
153 # the build directory so that we don't have to convert all the
154 # programs that use libopcodes.a simultaneously. This is a hack which
155 # should be removed if everything else starts using libtool. FIXME.
157 noinst_LIBRARIES = libopcodes.a
159 stamp-lib: libopcodes.la
160 if [ -f .libs/libopcodes.a ]; then \
161 cp .libs/libopcodes.a libopcodes.tmp; \
162 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
166 libopcodes.a: stamp-lib ; @true
168 POTFILES = $(HFILES) $(CFILES)
169 po/POTFILES.in: @MAINT@ Makefile
170 for file in $(POTFILES); do echo $$file; done | sort > tmp \
171 && mv tmp $(srcdir)/po/POTFILES.in
173 # We should reconfigure whenever bfd/configure.in changes, because
174 # that's where the version number comes from.
175 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
176 $(SHELL) ./config.status --recheck
179 libopcodes.a stamp-lib dep.sed .dep .dep1
183 # The start marker is written this way to pass through automake unscathed.
188 # This dependency stuff is copied from BFD.
190 .dep: dep.sed $(CFILES) $(HFILES) config.h
192 $(MAKE) DEP=$(DEP) .dep1
193 sed -f dep.sed < .dep1 > .dep
197 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
199 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
200 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
202 $(srcdir)/../move-if-change .dep2 .dep1
204 dep.sed: dep-in.sed config.status
205 sed <$(srcdir)/dep-in.sed >dep.sed \
206 -e 's!@BFD_H@!$(BFD_H)!' \
207 -e 's!@INCDIR@!$(INCDIR)!' \
208 -e 's!@BFDDIR@!$(BFDDIR)!' \
209 -e 's!@SRCDIR@!$(srcdir)!'
212 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
213 cat .dep >> tmp-Makefile
214 $(srcdir)/../move-if-change tmp-Makefile Makefile
217 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
218 cat .dep >> tmp-Makefile.in
219 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
222 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
223 cat .dep >> tmp-Makefile.am
224 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
226 .PHONY: dep dep-in dep-am
228 # What appears below is generated by a hacked mkdep using gcc -MM.
230 # DO NOT DELETE THIS LINE -- mkdep uses it.
231 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
232 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
233 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
234 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
235 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
236 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
238 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
239 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
240 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
241 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
242 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
243 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
244 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
246 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
247 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
248 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
249 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
250 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
251 $(INCDIR)/dis-asm.h $(BFD_H)
252 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
253 d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \
254 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
255 d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h
256 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
258 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
259 $(INCDIR)/dis-asm.h $(BFD_H)
260 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \
261 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
263 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \
264 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
266 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
267 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
269 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
270 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
272 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(BFD_H) \
273 $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \
275 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
276 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
277 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
278 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
279 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
280 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
281 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
282 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
283 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
285 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
286 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
288 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \
289 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
291 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
292 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
294 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \
295 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
297 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(BFD_H) \
298 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
300 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(BFD_H) \
301 $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \
303 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
304 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \
305 $(INCDIR)/opcode/m68k.h
306 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
307 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
308 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h
309 mcore-dis.lo: mcore-dis.c mcore-opc.h $(INCDIR)/ansidecl.h \
310 $(INCDIR)/dis-asm.h $(BFD_H)
311 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
312 $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \
313 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
314 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
315 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
316 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
317 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
318 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
319 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
320 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
321 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
322 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
323 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
324 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
326 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
327 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
328 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
330 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
332 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
333 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
334 $(BFD_H) $(INCDIR)/libiberty.h opintl.h
335 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
336 tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
337 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
338 tic80-dis.lo: tic80-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h \
339 $(INCDIR)/dis-asm.h $(BFD_H)
340 tic80-opc.lo: tic80-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h
341 vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \
342 $(BFD_H) $(INCDIR)/ansidecl.h
343 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
344 $(BFD_H) $(INCDIR)/ansidecl.h
345 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
347 z8kgen.lo: z8kgen.c sysdep.h config.h
348 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY