]> git.sur5r.net Git - openldap/blob - build/lib-shared.mk
Remove "touch all-common", not building when needed is worse than building
[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 COMPILE = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c
10 MKDEPFLAG = -l
11
12 .SUFFIXES: .c .o .lo
13
14 .c.lo:
15         $(COMPILE) $<
16
17 $(LIBRARY):  version.lo
18         $(LTLIBLINK) -rpath $(libdir) -o $@ $(OBJS) version.lo
19         $(RM) ../$@;    \
20         (d=`$(PWD)` ; $(LN_S) `$(BASENAME) $$d`/$@ ../$@)
21         $(RM) ../`$(BASENAME) $@ .la`.a;        \
22         (d=`$(PWD)`; t=`$(BASENAME) $@ .la`.a; $(LN_S) `$(BASENAME) $$d`/.libs/$$t ../$$t)
23
24 Makefile: $(top_srcdir)/build/lib-shared.mk