]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldbm/Make-template
fix SIGUNUSED typo
[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 ../../../include/avl.h ../../../include/proto-lber.h
76 idl.o: ../../../include/proto-ldap.h ../../../include/ldif.h back-ldbm.h
77 add.o: add.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
78 add.o: ../../../include/ldif.h ../../../include/ldbm.h
79 search.o: search.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
80 search.o: ../../../include/ldif.h ../../../include/ldbm.h
81 cache.o: cache.c ../../../include/avl.h ../../../include/proto-lber.h
82 cache.o: ../../../include/proto-ldap.h ../../../include/ldif.h
83 cache.o: ../../../include/ldbm.h
84 dbcache.o: dbcache.c ../../../include/portable.h ../../../include/avl.h
85 dbcache.o: ../../../include/proto-lber.h ../../../include/proto-ldap.h
86 dbcache.o: ../../../include/ldif.h back-ldbm.h
87 dn2id.o: dn2id.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
88 dn2id.o: ../../../include/ldif.h ../../../include/ldbm.h
89 id2entry.o: id2entry.c ../../../include/avl.h ../../../include/proto-lber.h
90 id2entry.o: ../../../include/proto-ldap.h ../../../include/ldif.h
91 id2entry.o: ../../../include/ldbm.h
92 index.o: index.c ../../../include/avl.h ../../../include/proto-lber.h
93 index.o: ../../../include/proto-ldap.h ../../../include/ldif.h
94 index.o: ../../../include/ldbm.h
95 id2children.o: id2children.c ../../../include/proto-lber.h
96 id2children.o: ../../../include/proto-ldap.h ../../../include/ldif.h
97 id2children.o: ../../../include/ldbm.h
98 nextid.o: nextid.c ../../../include/avl.h ../../../include/proto-lber.h
99 nextid.o: ../../../include/proto-ldap.h ../../../include/ldif.h
100 nextid.o: ../../../include/ldbm.h
101 abandon.o: abandon.c
102 compare.o: compare.c ../../../include/proto-lber.h
103 compare.o: ../../../include/proto-ldap.h ../../../include/ldif.h
104 compare.o: ../../../include/ldbm.h
105 modify.o: modify.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
106 modify.o: ../../../include/ldif.h ../../../include/ldbm.h
107 modrdn.o: modrdn.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
108 modrdn.o: ../../../include/ldif.h ../../../include/ldbm.h
109 delete.o: delete.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
110 delete.o: ../../../include/ldif.h ../../../include/ldbm.h
111 init.o: init.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
112 init.o: ../../../include/ldif.h ../../../include/ldbm.h
113 config.o: config.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
114 config.o: ../../../include/ldif.h ../../../include/ldbm.h
115 bind.o: bind.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
116 bind.o: ../../../include/ldif.h ../../../include/ldbm.h
117 attr.o: attr.c ../../../include/proto-lber.h ../../../include/proto-ldap.h
118 attr.o: ../../../include/ldif.h ../../../include/ldbm.h
119 filterindex.o: filterindex.c ../../../include/avl.h
120 filterindex.o: ../../../include/proto-lber.h ../../../include/proto-ldap.h
121 filterindex.o: ../../../include/ldif.h ../../../include/ldbm.h
122 unbind.o: unbind.c ../../../include/avl.h ../../../include/proto-lber.h
123 unbind.o: ../../../include/proto-ldap.h ../../../include/ldif.h
124 kerberos.o: kerberos.c ../../../include/proto-lber.h
125 kerberos.o: ../../../include/proto-ldap.h ../../../include/ldif.h
126 kerberos.o: ../../../include/ldbm.h
127 close.o: close.c ../../../include/avl.h ../../../include/proto-lber.h
128 close.o: ../../../include/proto-ldap.h ../../../include/ldif.h
129 close.o: ../../../include/ldbm.h
130
131 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY