]> git.sur5r.net Git - openldap/blob - build/lib.mk
Apply ldbm bind() change to bdb2 code.
[openldap] / build / lib.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 Libraries
7 ##
8
9 all-common: $(LIBRARY) $(PROGRAMS)
10
11 version.c: $(OBJS) $(srcdir)/Version.c
12         $(RM) $@
13         (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` \
14         h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
15         -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
16         -e "s|%VERSION%|$${v}|" \
17         < $(srcdir)/Version.c > $@)
18
19 install-common: FORCE
20
21 lint: lint-local FORCE
22         $(LINT) $(DEFS) $(DEFINES) $(SRCS)
23
24 lint5: lint5-local FORCE
25         $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
26
27 clean-common:   FORCE
28         $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
29                 $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
30                 *.o *.lo a.out core version.c .libs/*
31
32 depend-common: FORCE
33         $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
34
35 lint-local: FORCE
36 lint5-local: FORCE
37
38 Makefile: $(top_srcdir)/build/lib.mk