]> git.sur5r.net Git - openldap/blob - build/lib.mk
Return to release engineering
[openldap] / build / lib.mk
1 # $OpenLDAP$
2 ## Copyright 1998-2004 The OpenLDAP Foundation.
3 ## All rights reserved.
4 ##
5 ## Redistribution and use in source and binary forms, with or without
6 ## modification, are permitted only as authorized by the OpenLDAP
7 ## Public License.
8 ##
9 ## A copy of this license is available in the file LICENSE in the
10 ## top-level directory of the distribution or, alternatively, at
11 ## <http://www.OpenLDAP.org/license.html>.
12 ##---------------------------------------------------------------------------
13 #
14 # Makefile Template for Libraries
15 #
16
17 all-common: $(LIBRARY) $(PROGRAMS)
18
19 version.c: Makefile
20         $(RM) $@
21         $(MKVERSION) $(LIBRARY) > $@
22
23 version.o version.lo: version.c $(OBJS)
24
25 install-common: FORCE
26
27 lint: lint-local FORCE
28         $(LINT) $(DEFS) $(DEFINES) $(SRCS)
29
30 lint5: lint5-local FORCE
31         $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
32
33 #
34 # In the mingw/cygwin environment, the so and dll files must be
35 # deleted separately, instead of using the {.so*,*.dll} construct
36 # that was previously used. It just didn't work.
37 #
38 clean-common:   FORCE
39         $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
40                 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
41                 *.o *.lo a.out *.exe core version.c .libs/* \
42                 ../`$(BASENAME) $(LIBRARY) .la`.so* \
43                 ../`$(BASENAME) $(LIBRARY) .la`*.dll
44
45 depend-common: FORCE
46         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
47
48 lint-local: FORCE
49 lint5-local: FORCE
50
51 Makefile: $(top_srcdir)/build/lib.mk
52