4cdf618554
tested and ok sturm@
50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
$OpenBSD: patch-src_Makefile_in,v 1.3 2005/12/24 20:05:27 steven Exp $
|
|
--- src/Makefile.in.orig Fri Nov 11 20:48:22 2005
|
|
+++ src/Makefile.in Sat Dec 24 12:30:10 2005
|
|
@@ -247,6 +247,9 @@ else
|
|
PIC_XERBLA = $(XERBLA)
|
|
endif
|
|
|
|
+SHLLIB_VER=$(SHLEXT).$(LIBoctinterp_VERSION)
|
|
+SHLEXT_VER=$(SHLLIB_VER)
|
|
+
|
|
ifeq ($(SHARED_LIBS), true)
|
|
ifeq ($(STATIC_LIBS), true)
|
|
LIBRARIES = liboctinterp.$(LIBEXT) liboctinterp.$(SHLEXT_VER)
|
|
@@ -270,12 +273,8 @@ liboctinterp.$(LIBEXT): $(OBJECTS) $(XER
|
|
$(TEMPLATE_AR) $(TEMPLATE_ARFLAGS) $@ $^
|
|
$(RANLIB) $@
|
|
|
|
-liboctinterp.$(SHLEXT_VER): liboctinterp.$(SHLEXT)
|
|
+liboctinterp.$(SHLEXT_VER): $(PICOBJ) $(PIC_XERBLA)
|
|
rm -f $@
|
|
- $(LN_S) $< $@
|
|
-
|
|
-liboctinterp.$(SHLEXT): $(PICOBJ) $(PIC_XERBLA)
|
|
- rm -f $@
|
|
$(SH_LD) $(SH_LDFLAGS) $(SONAME_FLAGS) -o $@ $^ $(OCTINTERP_LINK_DEPS)
|
|
|
|
stamp-oct-links: $(OCT_FILES)
|
|
@@ -368,8 +367,7 @@ install-strip:
|
|
install-bin:
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
|
|
rm -f $(DESTDIR)$(bindir)/octave$(EXEEXT)
|
|
- $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave-$(version)$(EXEEXT)
|
|
- $(LN_S) octave-$(version)$(EXEEXT) $(DESTDIR)$(bindir)/octave$(EXEEXT)
|
|
+ $(INSTALL_PROGRAM) octave$(EXEEXT) $(DESTDIR)$(bindir)/octave
|
|
.PHONY: install-bin
|
|
|
|
install-oct:
|
|
@@ -393,10 +391,8 @@ install-lib:
|
|
fi
|
|
if $(SHARED_LIBS); then \
|
|
rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLEXT_VER); \
|
|
- $(INSTALL) liboctinterp.$(SHLLIB) \
|
|
+ $(INSTALL) liboctinterp.$(SHLLIB_VER) \
|
|
$(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB_VER); \
|
|
- rm -f $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB); \
|
|
- $(LN_S) liboctinterp.$(SHLLIB_VER) $(DESTDIR)$(octlibdir)/liboctinterp.$(SHLLIB); \
|
|
if test x$(SHLBIN) != x ; then \
|
|
rm -f $(DESTDIR)$(bindir)/liboctinterp.$(SHLBIN); \
|
|
$(INSTALL_PROGRAM) \
|