]> git.sur5r.net Git - openldap/blobdiff - build/lib-shared.mk
update project settings
[openldap] / build / lib-shared.mk
index b0778be22ddaf7baf6973440ef5f883ea139e78d..59fc6e9637b14ddc9db1d0bf142459a050a3da58 100644 (file)
@@ -1,9 +1,13 @@
+## Copyright 1998,1999 The OpenLDAP Foundation
+## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
+## of this package for details.
 ##---------------------------------------------------------------------------
 ##
 ## Makefile Template for Shared Libraries
 ##
 
-LINK    = $(LTLINK) -version-info $(LIBVERSION)
+LTVERSION = -version-info $(LIBVERSION)
+LINK    = $(LTLINK)
 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c
 MKDEPFLAG = -l
 
@@ -14,7 +18,9 @@ MKDEPFLAG = -l
 
 $(LIBRARY):  version.lo
        $(LINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
-       @$(RM) ../$@;   \
+       $(RM) ../$@;    \
        (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
+       $(RM) ../`$(BASENAME) $@ .la`.a;        \
+       (d=`$(PWD)`; t=`$(BASENAME) $@ .la`.a; $(LN_S) `$(BASENAME) $$d`/.libs/$$t ../$$t)
 
 Makefile: $(top_srcdir)/build/lib-shared.mk