aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-15 15:42:10 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-15 15:42:10 +0000
commit52c6bc4d975ef19ccd8d6a0c9640e00f376f76a3 (patch)
tree6117ab7da80d6097d3584708be4d5c4fbc252cd6 /bfd
parent03db5a9303329f81138bb2f08ffd8ee30ed01cbe (diff)
downloadgdb-52c6bc4d975ef19ccd8d6a0c9640e00f376f76a3.zip
gdb-52c6bc4d975ef19ccd8d6a0c9640e00f376f76a3.tar.gz
gdb-52c6bc4d975ef19ccd8d6a0c9640e00f376f76a3.tar.bz2
Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
* Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h. ($(srcdir)/libbfd.h): Rename from libbfd.h. ($(srcdir)/libcoff.h): Rename from libcoff.h.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/Makefile.in28
2 files changed, 31 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0253114..e6c7d58 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
+
+ * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
+ ($(srcdir)/libbfd.h): Rename from libbfd.h.
+ ($(srcdir)/libcoff.h): Rename from libcoff.h.
+
Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
* ieee.c (ieee_write_expression): Only use an R variable for a
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 0da4cbb..b67cb5a 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -67,6 +67,8 @@ SHLIB_CFLAGS = @SHLIB_CFLAGS@
COMMON_SHLIB = @COMMON_SHLIB@
SHLINK = @SHLINK@
+SONAME = lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`
+
CC_FOR_BUILD = @CC_FOR_BUILD@
INCDIR = $(srcdir)/../include
@@ -496,10 +498,27 @@ $(SHLIB): stamp-picdir $(OFILES) piclist
rm -f $(SHLIB)
$(SHLIB_CC) $(SHLIB_CFLAGS) -o $(SHLIB) `cat piclist`
+# We make a link from libbfd.so to libbfd.so.VERSION for linking, and
+# also a link from libTARGET-bfd.so.VERSION for running.
$(SHLINK): $(SHLIB)
+ ts=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed -e '$(program_transform_name)'`; \
+ if [ "$$ts" != "$(SHLIB)" ]; then \
+ rm -f $$ts; \
+ ln -sf $(SHLIB) $$ts; \
+ else true; fi
rm -f $(SHLINK)
ln -sf $(SHLIB) $(SHLINK)
+# This target creates libTARGET-bfd.so.VERSION as a symlink to
+# libbfd.so.VERSION. It is used on SunOS, which does not have SONAME.
+stamp-tshlink: $(SHLIB)
+ tf=lib`echo $(SHLIB) | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
+ if [ "$$tf" != "$(SHLIB)" ]; then \
+ rm -f $$tf; \
+ ln -sf $(SHLIB) $$tf; \
+ else true; fi
+ touch stamp-tshlink
+
# When compiling archures.c and targets.c, supply the default target
# info from configure.
@@ -626,6 +645,9 @@ force:
install: $(ALLLIBS)
for f in $(ALLLIBS); do \
+ if [ "$$f" = "stamp-tshlink" ]; then \
+ continue; \
+ fi; \
tf=lib`echo $$f | sed -e 's/^lib//' | sed '$(program_transform_name)'`; \
rm -f $(libdir)/$$tf; \
if [ "$$f" = "$(SHLINK)" ]; then \
@@ -736,15 +758,15 @@ headers:
# The rules for the generated header files are here so that people can
# type `make bfd-in2.h' if they remove it. They are not run by default.
-bfd-in2.h:
+$(srcdir)/bfd-in2.h:
(cd $(docdir); $(MAKE) bfd.h $(FLAGS_TO_PASS))
cp $(docdir)/bfd.h bfd-in2.h-new
$(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h
-libbfd.h:
+$(srcdir)/libbfd.h:
(cd $(docdir); $(MAKE) libbfd.h $(FLAGS_TO_PASS))
cp $(docdir)/libbfd.h libbfd.h-new
$(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h
-libcoff.h:
+$(srcdir)/libcoff.h:
(cd $(docdir); $(MAKE) libcoff.h $(FLAGS_TO_PASS))
cp $(docdir)/libcoff.h libcoff.h-new
$(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h