]> git.sur5r.net Git - openldap/blob - build/lib.mk
Revert previous commit, added NT mkvers script
[openldap] / build / lib.mk
1 # $OpenLDAP$
2 ## Copyright 1998-2003 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: Makefile
13         $(RM) $@
14         $(MKVERSION) $(LIBRARY) > $@
15
16 version.o: version.c $(OBJS)
17
18 install-common: FORCE
19
20 lint: lint-local FORCE
21         $(LINT) $(DEFS) $(DEFINES) $(SRCS)
22
23 lint5: lint5-local FORCE
24         $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
25
26 #
27 # In the mingw/cygwin environment, the so and dll files must be
28 # deleted separately, instead of using the {.so*,*.dll} construct
29 # that was previously used. It just didn't work.
30 #
31 clean-common:   FORCE
32         $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
33                 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
34                 *.o *.lo a.out *.exe core version.c .libs/* \
35                 ../`$(BASENAME) $(LIBRARY) .la`.so* \
36                 ../`$(BASENAME) $(LIBRARY) .la`*.dll
37
38 depend-common: FORCE
39         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
40
41 lint-local: FORCE
42 lint5-local: FORCE
43
44 Makefile: $(top_srcdir)/build/lib.mk
45