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.in | |
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.in')
-rw-r--r-- | opcodes/Makefile.in | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in index 90cef01..be008d3 100644 --- a/opcodes/Makefile.in +++ b/opcodes/Makefile.in @@ -69,11 +69,9 @@ BFD_MACHINES = @BFD_MACHINES@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ -CC_FOR_BUILD = @CC_FOR_BUILD@ DATADIRNAME = @DATADIRNAME@ DLLTOOL = @DLLTOOL@ EXEEXT = @EXEEXT@ -EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GT_NO = @GT_NO@ @@ -101,6 +99,7 @@ VERSION = @VERSION@ WIN32LDFLAGS = @WIN32LDFLAGS@ WIN32LIBADD = @WIN32LIBADD@ archdefs = @archdefs@ +cgendir = @cgendir@ l = @l@ AUTOMAKE_OPTIONS = cygnus @@ -310,8 +309,25 @@ noinst_LIBRARIES = libopcodes.a POTFILES = $(HFILES) $(CFILES) 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 + +@CGEN_MAINT_TRUE@M32R_DEPS = @CGEN_MAINT_TRUE@stamp-m32r +@CGEN_MAINT_FALSE@M32R_DEPS = +@CGEN_MAINT_TRUE@FR30_DEPS = @CGEN_MAINT_TRUE@stamp-fr30 +@CGEN_MAINT_FALSE@FR30_DEPS = ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs CONFIG_HEADER = config.h @@ -340,7 +356,7 @@ acinclude.m4 aclocal.m4 config.in configure configure.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) -TAR = tar +TAR = gtar GZIP_ENV = --best SOURCES = libopcodes.a.c $(libopcodes_la_SOURCES) OBJECTS = libopcodes.a.o $(libopcodes_la_OBJECTS) @@ -729,6 +745,24 @@ po/POTFILES.in: @MAINT@ Makefile config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in $(SHELL) ./config.status --recheck +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. ia64-ic.tbl: $(srcdir)/ia64-ic.tbl |