Fri Jun 5 19:15:04 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[deliverable/binutils-gdb.git] / opcodes / Makefile.am
index 4fc2e46361e032a9b10d5d7292b1cca2886af080..88d1a28331f4cefb6272ead42bfac60ccb862a5e 100644 (file)
@@ -1,5 +1,9 @@
 ## Process this file with automake to generate Makefile.in
 
+AUTOMAKE_OPTIONS = cygnus
+
+SUBDIRS = po
+
 INCDIR = $(srcdir)/../include
 BFDDIR = $(srcdir)/../bfd
 DEP = mkdep
@@ -116,14 +120,15 @@ ALL_MACHINES = \
 
 OFILES = @BFD_MACHINES@
 
-INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@
+INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
 
 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
        $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
 
 libopcodes_la_SOURCES =  dis-buf.c disassemble.c
 libopcodes_la_DEPENDENCIES = $(OFILES)
-libopcodes_la_LIBADD = $(OFILES)
+libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
+libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
 
 # libtool will build .libs/libopcodes.a.  We create libopcodes.a in
 # the build directory so that we don't have to convert all the
@@ -133,12 +138,19 @@ libopcodes_la_LIBADD = $(OFILES)
 noinst_LIBRARIES = libopcodes.a
 
 stamp-lib: libopcodes.la
-       cp .libs/libopcodes.a libopcodes.tmp
-       $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a
+       if [ -f .libs/libopcodes.a ]; then \
+         cp .libs/libopcodes.a libopcodes.tmp; \
+         $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
+       else true; fi
        touch stamp-lib
 
 libopcodes.a: stamp-lib ; @true
 
+POTFILES = $(HFILES) $(CFILES)
+po/POTFILES.in: @MAINT@ Makefile
+       for file in $(POTFILES); do echo $$file; done | sort > tmp \
+         && mv tmp $(srcdir)/po/POTFILES.in
+
 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
 # start-sanitize-cygnus
 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r
@@ -155,12 +167,21 @@ CGENDIR = $(srcdir)/../cgen
 CGENFLAGS = -v
 
 CGENFILES = $(CGENDIR)/object.scm $(CGENDIR)/utils.scm \
+       $(CGENDIR)/attr.scm $(CGENDIR)/enum.scm $(CGENDIR)/types.scm \
        $(CGENDIR)/utils-cgen.scm $(CGENDIR)/cpu.scm \
        $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
+       $(CGENDIR)/model.scm $(CGENDIR)/hardware.scm \
        $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
-       $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm \
-       $(CGENDIR)/opcodes.scm $(CGENDIR)/cgen-opc.scm \
-       cgen-opc.in cgen-asm.in cgen-dis.in
+       $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm $(CGENDIR)/minsn.scm \
+       $(CGENDIR)/opcodes.scm $(CGENDIR)/cdl-c.scm \
+       $(CGENDIR)/cgen-opc.scm cgen-opc.in cgen-asm.in cgen-dis.in
+# The CGEN_MAINT conditional is put here so it end up in Makefile.in
+# properly sanitized.
+if CGEN_MAINT
+M32R_DEPS = stamp-m32r
+else
+M32R_DEPS =
+endif
 # The end marker is written this way to pass through automake unscathed.
 ENDSAN = end-sanitize-cygnus
 
@@ -171,9 +192,8 @@ cgen:
 
 .PHONY: cgen
 
-# For now, require developers to configure with --enable-maintainer-mode.
-# ??? Do we need to use a different option?
-m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r
+# For now, require developers to configure with --enable-cgen-maint.
+m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: $(M32R_DEPS)
        @true
 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
        $(MAKE) cgen arch=m32r prefix=m32r
@@ -286,6 +306,9 @@ mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
+# start-sanitize-r5900
+mips-opc.lo: vu0.h
+# end-sanitize-r5900
 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
   $(INCDIR)/dis-asm.h $(BFD_H)
This page took 0.024284 seconds and 4 git commands to generate.