Internationalised the opcodes library.
[deliverable/binutils-gdb.git] / opcodes / Makefile.am
index 570469c476784aea1144581ba87d02503f23bae6..749d4e352dc2f05d0a0551de66efaddaea2522d5 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
@@ -55,6 +59,7 @@ CFILES = \
        sh-dis.c \
        sparc-dis.c \
        sparc-opc.c \
+       tic30-dis.c \
        w65-dis.c \
        z8k-dis.c \
        z8kgen.c
@@ -99,6 +104,7 @@ ALL_MACHINES = \
        sh-dis.lo \
        sparc-dis.lo \
        sparc-opc.lo \
+       tic30-dis.lo \
        $(start-sanitize-tic80) \
        tic80-dis.lo \
        tic80-opc.lo \
@@ -114,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
@@ -131,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 = $(BFD_H) $(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
@@ -153,12 +167,14 @@ 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-asm.in cgen-dis.in
+       $(CGENDIR)/opcodes.scm $(CGENDIR)/cdl-c.scm \
+       $(CGENDIR)/cgen-opc.scm cgen-opc.in cgen-asm.in cgen-dis.in
 # The end marker is written this way to pass through automake unscathed.
 ENDSAN = end-sanitize-cygnus
 
@@ -243,7 +259,8 @@ alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
   $(BFD_H)
 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
-  $(INCDIR)/ansidecl.h arm-opc.h
+  $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
+  $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
   $(BFD_H) $(INCDIR)/opcode/cgen.h
 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
@@ -283,6 +300,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)
@@ -301,6 +321,8 @@ sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
   config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
   $(BFD_H) $(INCDIR)/libiberty.h
 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
+tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
+  $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
   $(BFD_H) $(INCDIR)/ansidecl.h
 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
This page took 0.025021 seconds and 4 git commands to generate.