]> git.sur5r.net Git - openldap/blob - build/lib.mk
Need ../cr.o
[openldap] / build / lib.mk
1 # $OpenLDAP$
2 ## Copyright 1998-2002 The OpenLDAP Foundation
3 ## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
4 ## of this package for details.
5 ##---------------------------------------------------------------------------
6 ##
7 ## Makefile Template for Libraries
8 ##
9
10 all-common: $(LIBRARY) $(PROGRAMS)
11
12 version.c: $(OBJS)
13         $(RM) $@
14         $(MKVERSION) $(LIBRARY) > $@
15
16 install-common: FORCE
17
18 lint: lint-local FORCE
19         $(LINT) $(DEFS) $(DEFINES) $(SRCS)
20
21 lint5: lint5-local FORCE
22         $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
23
24 #
25 # In the mingw/cygwin environment, the so and dll files must be
26 # deleted separately, instead of using the {.so*,*.dll} construct
27 # that was previously used. It just didn't work.
28 #
29 clean-common:   FORCE
30         $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
31                 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
32                 *.o *.lo a.out *.exe core version.c .libs/* \
33                 ../`$(BASENAME) $(LIBRARY) .la`.so* \
34                 ../`$(BASENAME) $(LIBRARY) .la`*.dll
35
36 depend-common: FORCE
37         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
38
39 lint-local: FORCE
40 lint5-local: FORCE
41
42 Makefile: $(top_srcdir)/build/lib.mk
43