]> git.sur5r.net Git - openldap/blob - build/lib-shared.mk
Update 1.1alpha with latest build environment changes from -devel.
[openldap] / build / lib-shared.mk
1 ##---------------------------------------------------------------------------
2 ##
3 ## Makefile Template for Shared Libraries
4 ##
5
6 LINK    = $(LTLINK) -version-info $(LIBVERSION)
7 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c
8 MKDEPFLAG = -l
9
10 .SUFFIXES: .c .o .lo
11
12 .c.lo:
13         $(COMPILE) $<
14
15 $(LIBRARY):  version.lo
16         $(LINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
17         @$(RM) ../$@;   \
18         (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
19
20 Makefile: $(top_srcdir)/build/lib-shared.mk