aboutsummaryrefslogtreecommitdiff
path: root/opcodes/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-15 19:45:45 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-15 19:45:45 +0000
commit6d76c71f5e7a2f7aeb5f9f969faeb1a4021a6980 (patch)
treeeaf75a3e6766d80541ab94b3c488613633f0a983 /opcodes/Makefile.in
parent1a2f3c3f1f48a069ecafa50fe7ab81e0718270c9 (diff)
downloadgdb-6d76c71f5e7a2f7aeb5f9f969faeb1a4021a6980.zip
gdb-6d76c71f5e7a2f7aeb5f9f969faeb1a4021a6980.tar.gz
gdb-6d76c71f5e7a2f7aeb5f9f969faeb1a4021a6980.tar.bz2
* Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
Diffstat (limited to 'opcodes/Makefile.in')
-rw-r--r--opcodes/Makefile.in49
1 files changed, 42 insertions, 7 deletions
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
index 9972393..388f5e8 100644
--- a/opcodes/Makefile.in
+++ b/opcodes/Makefile.in
@@ -21,6 +21,7 @@ srcdir = @srcdir@
prefix = @prefix@
+program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
@@ -63,6 +64,8 @@ SHLIB_CFLAGS = @SHLIB_CFLAGS@
COMMON_SHLIB = @COMMON_SHLIB@
SHLINK = @SHLINK@
+SONAME = lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`
+
INCDIR = $(srcdir)/../include
BFDDIR = $(srcdir)/../bfd
CSEARCH = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR)
@@ -154,9 +157,37 @@ $(SHLIB): stamp-picdir $(OFILES) piclist
fi
$(SHLINK): $(SHLIB)
+ ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
+ if [ "$(COMMON_SHLIB)" = "yes" ]; then \
+ ts=../bfd/$$ts; \
+ fi; \
+ if [ "$$ts" != "$(SHLIB)" ]; then \
+ rm -f $$ts; \
+ ln -sf `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $$ts; \
+ else true; fi
rm -f $(SHLINK)
ln -sf `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $(SHLINK)
+# This target creates libTARGET-opcodes.so.VERSION as a symlink to
+# libopcodes.so.VERSION. It is used on SunOS, which does not have SONAME.
+stamp-tshlink: $(SHLIB)
+ tf=lib`echo $(SHLIB) | sed -e 's,\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ if [ "$(COMMON_SHLIB)" = "yes" ]; then \
+ tf=../bfd/$$tf; \
+ fi; \
+ if [ "$$tf" != "$(SHLIB)" ]; then \
+ rm -f $$tf; \
+ ln -sf $(SHLIB) $$tf; \
+ else true; fi
+ if [ "$(COMMON_SHLIB)" = "yes" ]; then \
+ tf=lib`echo $(TARGETLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ if [ "$$tf" != "$(TARGETLIB)" ]; then \
+ rm -f $$tf; \
+ ln -sf $(TARGETLIB) $$tf; \
+ else true; fi; \
+ else true; fi
+ touch stamp-tshlink
+
$(OFILES): stamp-picdir
disassemble.o: disassemble.c $(INCDIR)/dis-asm.h
@@ -229,16 +260,20 @@ force:
install: $(ALLLIBS)
for f in $(ALLLIBS); do \
- bf=`echo $$f | sed -e 's,^\.\./bfd/,,'`; \
- rm -f $(libdir)/$$bf; \
+ if [ "$$f" = "stamp-tshlink" ]; then \
+ continue; \
+ fi; \
+ tf=lib`echo $$f | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ rm -f $(libdir)/$$tf; \
if [ "$$f" = "$(SHLINK)" ]; then \
- ln -sf `echo $(SHLIB) | sed -e 's,^\.\./bfd/,,'` $(libdir)/$$bf; \
+ ts=lib`echo $(SHLIB) | sed -e 's,^\.\./bfd/,,' -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ ln -sf $$ts $(libdir)/$$tf; \
elif [ "$$f" = "$(SHLIB)" ]; then \
- $(INSTALL_PROGRAM) $$f $(libdir)/$$bf; \
+ $(INSTALL_PROGRAM) $$f $(libdir)/$$tf; \
else \
- $(INSTALL_DATA) $$f $(libdir)/$$bf; \
- $(RANLIB) $(libdir)/$$bf; \
- chmod a-x $(libdir)/$$bf; \
+ $(INSTALL_DATA) $$f $(libdir)/$$tf; \
+ $(RANLIB) $(libdir)/$$tf; \
+ chmod a-x $(libdir)/$$tf; \
fi; \
done