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 \
27 # C source files that correspond to .o's.
127 $(start-sanitize-tic80) \
130 $(end-sanitize-tic80) \
131 $(start-sanitize-sky) \
134 $(end-sanitize-sky) \
141 OFILES = @BFD_MACHINES@
143 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
145 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
146 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
148 libopcodes_la_SOURCES = dis-buf.c disassemble.c
149 libopcodes_la_DEPENDENCIES = $(OFILES)
150 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
151 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
153 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
154 # the build directory so that we don't have to convert all the
155 # programs that use libopcodes.a simultaneously. This is a hack which
156 # should be removed if everything else starts using libtool. FIXME.
158 noinst_LIBRARIES = libopcodes.a
160 stamp-lib: libopcodes.la
161 if [ -f .libs/libopcodes.a ]; then \
162 cp .libs/libopcodes.a libopcodes.tmp; \
163 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
167 libopcodes.a: stamp-lib ; @true
169 POTFILES = $(HFILES) $(CFILES)
170 po/POTFILES.in: @MAINT@ Makefile
171 for file in $(POTFILES); do echo $$file; done | sort > tmp \
172 && mv tmp $(srcdir)/po/POTFILES.in
174 # We should reconfigure whenever bfd/configure.in changes, because
175 # that's where the version number comes from.
176 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
177 $(SHELL) ./config.status --recheck
179 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
180 # start-sanitize-cygnus
181 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 \
182 stamp-m32r stamp-fr30
183 # end-sanitize-cygnus
185 # start-sanitize-cygnus-never
186 # CGEN support is sanitized out of FSF releases for now.
187 # Sanitization must be split between assignments and rules because
188 # automake splits them that way.
189 # end-sanitize-cygnus-never
191 # start-sanitize-cygnus
196 CGENFILES = $(CGENDIR)/cos.scm $(CGENDIR)/utils.scm \
197 $(CGENDIR)/attr.scm $(CGENDIR)/enum.scm $(CGENDIR)/types.scm \
198 $(CGENDIR)/utils-cgen.scm $(CGENDIR)/read.scm \
199 $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
200 $(CGENDIR)/model.scm $(CGENDIR)/hardware.scm \
201 $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
202 $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm $(CGENDIR)/minsn.scm \
203 $(CGENDIR)/rtl.scm $(CGENDIR)/rtx-funcs.scm \
204 $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
205 $(CGENDIR)/opc-asmdis.scm $(CGENDIR)/opc-ibld.scm \
206 $(CGENDIR)/opc-itab.scm $(CGENDIR)/opc-opinst.scm \
207 $(CGENDIR)/opcodes.scm $(CGENDIR)/cgen-opc.scm \
208 cgen-asm.in cgen-dis.in cgen-ibld.in
209 # The CGEN_MAINT conditional is put here so it ends up in Makefile.in
210 # properly sanitised.
212 M32R_DEPS = stamp-m32r
213 FR30_DEPS = stamp-fr30
218 # The end marker is written this way to pass through automake unscathed.
219 ENDSAN = end-sanitize-cygnus
221 # start-sanitize-cygnus
223 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) $(CGENDIR) $(CGENFLAGS) $(arch) $(prefix) $(options) $(extrafiles)
224 touch stamp-${prefix}
227 # For now, require developers to configure with --enable-cgen-maint.
228 m32r-desc.h m32r-desc.c m32r-opc.h m32r-opc.c m32r-ibld.c m32r-opinst.c m32r-asm.c m32r-dis.c: $(M32R_DEPS)
230 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
231 $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst extrafiles=opinst
233 fr30-desc.h fr30-desc.c fr30-opc.h fr30-opc.c fr30-ibld.c fr30-asm.c fr30-dis.c: $(FR30_DEPS)
235 stamp-fr30: $(CGENFILES) $(CGENDIR)/fr30.cpu $(CGENDIR)/fr30.opc
236 $(MAKE) run-cgen arch=fr30 prefix=fr30 options= extrafiles=
237 # end-sanitize-cygnus
239 # start-sanitize-tic80
240 tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
241 $(INCDIR)/opcode/tic80.h
242 tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
246 dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
247 $(INCDIR)/opcode/dvp.h
248 dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h
250 mips-dis.lo: mips-dis.c
251 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c
254 # This dependency stuff is copied from BFD.
256 .dep: dep.sed $(CFILES) $(HFILES) config.h
258 $(MAKE) DEP=$(DEP) .dep1
259 sed -f dep.sed < .dep1 > .dep
263 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
265 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
266 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
268 $(srcdir)/../move-if-change .dep2 .dep1
270 dep.sed: dep-in.sed config.status
271 sed <$(srcdir)/dep-in.sed >dep.sed \
272 -e 's!@BFD_H@!$(BFD_H)!' \
273 -e 's!@INCDIR@!$(INCDIR)!' \
274 -e 's!@BFDDIR@!$(BFDDIR)!' \
275 -e 's!@SRCDIR@!$(srcdir)!'
278 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
279 cat .dep >> tmp-Makefile
280 $(srcdir)/../move-if-change tmp-Makefile Makefile
283 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
284 cat .dep >> tmp-Makefile.in
285 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
288 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
289 cat .dep >> tmp-Makefile.am
290 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
292 .PHONY: dep dep-in dep-am
294 # What appears below is generated by a hacked mkdep using gcc -MM.
296 # DO NOT DELETE THIS LINE -- mkdep uses it.
297 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
298 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
299 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
300 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
301 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
302 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
304 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
305 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
306 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
307 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
308 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
309 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
310 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
312 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
313 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
314 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
315 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
316 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
317 $(INCDIR)/dis-asm.h $(BFD_H)
318 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
319 d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \
320 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
321 d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h
322 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
324 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
325 $(INCDIR)/dis-asm.h $(BFD_H)
326 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \
327 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
329 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \
330 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
332 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
333 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
335 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(BFD_H) \
336 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
338 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
339 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
341 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
342 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
343 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
344 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
345 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
346 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
347 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
348 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
349 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
351 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
352 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
354 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \
355 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
357 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
358 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
360 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(BFD_H) \
361 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
363 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
364 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
366 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/libiberty.h \
367 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
369 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
370 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \
371 $(INCDIR)/opcode/m68k.h
372 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
373 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
374 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h
375 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
376 $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \
377 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
378 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
379 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
380 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
381 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
382 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
383 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
384 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
385 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
386 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
387 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
388 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
390 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
391 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
392 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
394 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
396 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
397 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
398 $(BFD_H) $(INCDIR)/libiberty.h opintl.h
399 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
400 tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
401 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
402 vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \
403 $(BFD_H) $(INCDIR)/ansidecl.h
404 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
405 $(BFD_H) $(INCDIR)/ansidecl.h
406 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
408 z8kgen.lo: z8kgen.c sysdep.h config.h
409 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY