]> git.sur5r.net Git - openldap/blob - build/lib-shared.mk
UNDO LAST COMMIT.
[openldap] / build / lib-shared.mk
1 ## Copyright 1998,1999 The OpenLDAP Foundation
2 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
3 ## of this package for details.
4 ##---------------------------------------------------------------------------
5 ##
6 ## Makefile Template for Shared Libraries
7 ##
8
9 LTVERSION = -version-info $(LIBVERSION)
10 LINK    = $(LTLINK)
11 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c
12 MKDEPFLAG = -l
13
14 .SUFFIXES: .c .o .lo
15
16 .c.lo:
17         $(COMPILE) $<
18
19 $(LIBRARY):  version.lo
20         $(LINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
21         $(RM) ../$@;    \
22         (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
23         $(RM) ../`$(BASENAME) $@ .la`.a;        \
24         (d=`$(PWD)`; t=`$(BASENAME) $@ .la`.a; $(LN_S) `$(BASENAME) $$d`/.libs/$$t ../$$t)
25
26 Makefile: $(top_srcdir)/build/lib-shared.mk