diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-15 15:42:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-15 15:42:10 +0000 |
commit | 52c6bc4d975ef19ccd8d6a0c9640e00f376f76a3 (patch) | |
tree | 6117ab7da80d6097d3584708be4d5c4fbc252cd6 /bfd/Makefile.in | |
parent | 03db5a9303329f81138bb2f08ffd8ee30ed01cbe (diff) | |
download | gdb-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/Makefile.in')
-rw-r--r-- | bfd/Makefile.in | 28 |
1 files changed, 25 insertions, 3 deletions
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 |