diff options
author | Ben Elliston <bje@au.ibm.com> | 2000-07-29 00:33:34 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2000-07-29 00:33:34 +0000 |
commit | 6e31aea3cd1292515d94f42d6b62e6313fff9269 (patch) | |
tree | fa1e3e71416919e286450fccc799a4599033cd1b /opcodes/Makefile.am | |
parent | 915ef37f63e7e7445871088ce1461d3ada44e466 (diff) | |
download | gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.zip gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.tar.gz gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.tar.bz2 |
2000-07-28 Ben Elliston <bje@redhat.com>
* Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New.
(run-cgen, stamp-m32r, stamp-fr30): New targets.
* Makefile.in: Regenerate.
* configure.in: Add --enable-cgen-maint option.
* configure: Regenerate.
Diffstat (limited to 'opcodes/Makefile.am')
-rw-r--r-- | opcodes/Makefile.am | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am index a87d490..3220f73 100644 --- a/opcodes/Makefile.am +++ b/opcodes/Makefile.am @@ -225,9 +225,47 @@ config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in $(SHELL) ./config.status --recheck CLEANFILES = \ + stamp-m32r stamp-fr30 \ libopcodes.a stamp-lib dep.sed DEP DEPA DEP1 DEP2 +CGENDIR = @cgendir@ +CGEN = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` +CGENFLAGS = -v + +CGENDEPS = ../cgen/stamp-cgen \ + $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \ + $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \ + $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \ + $(CGENDIR)/opc-opinst.scm \ + cgen-asm.in cgen-dis.in cgen-ibld.in + +if CGEN_MAINT +M32R_DEPS = stamp-m32r +FR30_DEPS = stamp-fr30 +else +M32R_DEPS = +FR30_DEPS = +endif + +run-cgen: + $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \ + $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) \ + "$(options)" $(extrafiles) + touch stamp-${prefix} +.PHONY: run-cgen + +# For now, require developers to configure with --enable-cgen-maint. +$(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h $(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c $(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS) + @true +stamp-m32r: $(CGENDEPS) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc + $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst extrafiles=opinst + +$(srcdir)/fr30-desc.h $(srcdir)/fr30-desc.c $(srcdir)/fr30-opc.h $(srcdir)/fr30-opc.c $(srcdir)/fr30-ibld.c $(srcdir)/fr30-asm.c $(srcdir)/fr30-dis.c: $(FR30_DEPS) + @true +stamp-fr30: $(CGENDEPS) $(CGENDIR)/fr30.cpu $(CGENDIR)/fr30.opc + $(MAKE) run-cgen arch=fr30 prefix=fr30 options= extrafiles= + # The start marker is written this way to pass through automake unscathed. |