Add new port: crx-elf
[deliverable/binutils-gdb.git] / opcodes / Makefile.am
index e227b1f3817e6d61ec89feddca7342e8d676a30b..5c28971dade741340b691f8d88f536caff5098b4 100644 (file)
@@ -57,6 +57,8 @@ CFILES = \
        cgen-opc.c \
        cris-dis.c \
        cris-opc.c \
+       crx-dis.c \
+       crx-opc.c \
        d10v-dis.c \
        d10v-opc.c \
        d30v-dis.c \
@@ -179,6 +181,8 @@ ALL_MACHINES = \
        cgen-opc.lo \
        cris-dis.lo \
        cris-opc.lo \
+       crx-dis.lo \
+       crx-opc.lo \
        d10v-dis.lo \
        d10v-opc.lo \
        d30v-dis.lo \
@@ -283,8 +287,13 @@ 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 dis-init.c
-libopcodes_la_DEPENDENCIES = $(OFILES) ../bfd/libbfd.la
-libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@ ../bfd/libbfd.la
+# It's desirable to list ../bfd/libbfd.la in DEPENDENCIES and LIBADD.
+# Unfortunately this causes libtool to add -L$(libdir), referring to the
+# planned install directory of libbfd.  This can cause us to pick up an
+# old version of libbfd, or to pick up libbfd for the wrong architecture
+# if host != build.
+libopcodes_la_DEPENDENCIES = $(OFILES)
+libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
 
 # libtool will build .libs/libopcodes.a.  We create libopcodes.a in
@@ -543,6 +552,9 @@ cris-dis.lo: cris-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
   $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h sysdep.h config.h \
   $(INCDIR)/opcode/cris.h $(INCDIR)/libiberty.h
 cris-opc.lo: cris-opc.c $(INCDIR)/opcode/cris.h
+crx-dis.lo: crx-dis.c $(INCDIR)/opcode/crx.h \
+  $(INCDIR)/dis-asm.h sysdep.h $(INCDIR)/ansidecl.h
+crx-opc.lo: crx-opc.c $(INCDIR)/opcode/crx.h
 d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \
   $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H) \
   $(INCDIR)/symcat.h
This page took 0.023713 seconds and 4 git commands to generate.