]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldbm/Make-template
Apply back-ldbm/search.c matched initialization bugfix from -devel
[openldap] / servers / slapd / back-ldbm / Make-template
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1995 Regents of the University of Michigan.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
11 #
12 #       ldbm backend to stand-alone LDAP server makefile
13 #
14 #-----------------------------------------------------------------------------
15 LDAPSRC = ../../..
16 HDIR    = $(LDAPSRC)/include
17 LDIR    = $(LDAPSRC)/libraries
18 VERSIONFILE = $(LDAPSRC)/build/version
19
20 SRCS    = idl.c add.c search.c cache.c dbcache.c dn2id.c id2entry.c \
21                 index.c id2children.c nextid.c abandon.c compare.c \
22                 modify.c modrdn.c delete.c init.c config.c bind.c attr.c \
23                 filterindex.c unbind.c kerberos.c close.c
24 OBJS    = idl.o add.o search.o cache.o dbcache.o dn2id.o id2entry.o \
25                 index.o id2children.o nextid.o abandon.o compare.o \
26                 modify.o modrdn.o delete.o init.o config.o bind.o attr.o \
27                 filterindex.o unbind.o kerberos.o close.o
28
29 INCLUDES= -I. -I.. -I$(HDIR) $(KRBINCLUDEFLAG)
30 DEFINES = $(DEFS) $(THREADS)
31 CFLAGS  = $(INCLUDES) $(THREADSINCLUDE) $(DEFINES) $(ACFLAGS)
32 LDFLAGS = -L$(LDIR) $(KRBLIBFLAG)
33
34 all:    FORCE
35         -@echo "$(SLAPD_BACKENDS)" | grep LDAP_LDBM 2>&1 > /dev/null; \
36         if [ $$? = 0 ]; then \
37             $(MAKE) $(MFLAGS) CC=$(CC) libback-ldbm.a; \
38         else \
39             echo "Include -DLDAP_LDBM in SLAPD_BACKENDS in the"; \
40             echo "Make-common file to build the ldbm backend"; \
41         fi
42
43 libback-ldbm.a: version.o
44         $(AR) ruv $@ $(OBJS) version.o
45         @if [ ! -z "$(RANLIB)" ]; then \
46                 $(RANLIB) $@; \
47         fi
48         @touch ../.backend
49
50 version.c: $(OBJS)
51         $(RM) $@
52         (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
53         t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
54         -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
55         -e "s|%VERSION%|$${v}|" \
56         < Version.c > $@)
57
58 lint:   FORCE
59         $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
60
61 5lint:  FORCE
62         $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
63
64 clean:  FORCE
65         $(RM) libback-ldbm.a *.o core a.out version.c
66
67 depend: FORCE
68         $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
69
70 links:
71         @$(LN) .src/*.[ch] .
72 # DO NOT DELETE THIS LINE -- mkdep uses it.
73 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
74
75 idl.o: idl.c ../slap.h ../../../include/avl.h ../../../include/lber.h
76 idl.o: ../../../include/ldap.h ../../../include/lthread.h
77 idl.o: ../../../include/ldif.h ../../../include/ldapconfig.h back-ldbm.h
78 idl.o: ../../../include/ldbm.h
79 add.o: add.c ../slap.h ../../../include/avl.h ../../../include/lber.h
80 add.o: ../../../include/ldap.h ../../../include/lthread.h
81 add.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
82 search.o: search.c ../slap.h ../../../include/avl.h ../../../include/lber.h
83 search.o: ../../../include/ldap.h ../../../include/lthread.h
84 search.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
85 cache.o: cache.c ../slap.h ../../../include/avl.h ../../../include/lber.h
86 cache.o: ../../../include/ldap.h ../../../include/lthread.h
87 cache.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
88 dbcache.o: dbcache.c ../../../include/portable.h ../slap.h
89 dbcache.o: ../../../include/avl.h ../../../include/lber.h
90 dbcache.o: ../../../include/ldap.h ../../../include/lthread.h
91 dbcache.o: ../../../include/ldif.h ../../../include/ldapconfig.h back-ldbm.h
92 dbcache.o: ../../../include/ldbm.h
93 dn2id.o: dn2id.c ../slap.h ../../../include/avl.h ../../../include/lber.h
94 dn2id.o: ../../../include/ldap.h ../../../include/lthread.h
95 dn2id.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
96 id2entry.o: id2entry.c ../slap.h ../../../include/avl.h ../../../include/lber.h
97 id2entry.o: ../../../include/ldap.h ../../../include/lthread.h
98 id2entry.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
99 index.o: index.c ../slap.h ../../../include/avl.h ../../../include/lber.h
100 index.o: ../../../include/ldap.h ../../../include/lthread.h
101 index.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
102 id2children.o: id2children.c ../slap.h ../../../include/avl.h
103 id2children.o: ../../../include/lber.h ../../../include/ldap.h
104 id2children.o: ../../../include/lthread.h ../../../include/ldif.h back-ldbm.h
105 id2children.o: ../../../include/ldbm.h
106 nextid.o: nextid.c ../slap.h ../../../include/avl.h ../../../include/lber.h
107 nextid.o: ../../../include/ldap.h ../../../include/lthread.h
108 nextid.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
109 abandon.o: abandon.c
110 compare.o: compare.c ../slap.h ../../../include/avl.h ../../../include/lber.h
111 compare.o: ../../../include/ldap.h ../../../include/lthread.h
112 compare.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
113 modify.o: modify.c ../slap.h ../../../include/avl.h ../../../include/lber.h
114 modify.o: ../../../include/ldap.h ../../../include/lthread.h
115 modify.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
116 modrdn.o: modrdn.c ../slap.h ../../../include/avl.h ../../../include/lber.h
117 modrdn.o: ../../../include/ldap.h ../../../include/lthread.h
118 modrdn.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
119 delete.o: delete.c ../slap.h ../../../include/avl.h ../../../include/lber.h
120 delete.o: ../../../include/ldap.h ../../../include/lthread.h
121 delete.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
122 init.o: init.c ../slap.h ../../../include/avl.h ../../../include/lber.h
123 init.o: ../../../include/ldap.h ../../../include/lthread.h
124 init.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
125 config.o: config.c ../slap.h ../../../include/avl.h ../../../include/lber.h
126 config.o: ../../../include/ldap.h ../../../include/lthread.h
127 config.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
128 bind.o: bind.c ../slap.h ../../../include/avl.h ../../../include/lber.h
129 bind.o: ../../../include/ldap.h ../../../include/lthread.h
130 bind.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
131 attr.o: attr.c ../slap.h ../../../include/avl.h ../../../include/lber.h
132 attr.o: ../../../include/ldap.h ../../../include/lthread.h
133 attr.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
134 filterindex.o: filterindex.c ../slap.h ../../../include/avl.h
135 filterindex.o: ../../../include/lber.h ../../../include/ldap.h
136 filterindex.o: ../../../include/lthread.h ../../../include/ldif.h back-ldbm.h
137 filterindex.o: ../../../include/ldbm.h
138 unbind.o: unbind.c ../slap.h ../../../include/avl.h ../../../include/lber.h
139 unbind.o: ../../../include/ldap.h ../../../include/lthread.h
140 unbind.o: ../../../include/ldif.h
141 kerberos.o: kerberos.c ../slap.h ../../../include/avl.h ../../../include/lber.h
142 kerberos.o: ../../../include/ldap.h ../../../include/lthread.h
143 kerberos.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
144 close.o: close.c ../slap.h ../../../include/avl.h ../../../include/lber.h
145 close.o: ../../../include/ldap.h ../../../include/lthread.h
146 close.o: ../../../include/ldif.h back-ldbm.h ../../../include/ldbm.h
147
148 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY