]> git.sur5r.net Git - openldap/blob - servers/slapd/back-hdb/Makefile.in
6c8d703221648b87997ccce23f04d4a3a99bfd57
[openldap] / servers / slapd / back-hdb / Makefile.in
1 # Makefile for back-hdb
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2007 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15 #
16 ## Copyright 2003 Howard Chu @ Symas Corp. See master COPYRIGHT file for terms.
17
18 XXDIR = $(srcdir)/../back-bdb
19
20 XXSRCS = init.c tools.c config.c \
21         add.c bind.c compare.c delete.c modify.c modrdn.c search.c \
22         extended.c referral.c operational.c \
23         attr.c index.c key.c dbcache.c filterindex.c trans.c \
24         dn2entry.c dn2id.c error.c id2entry.c idl.c nextid.c cache.c
25 SRCS = $(XXSRCS)
26 OBJS = init.lo tools.lo config.lo \
27         add.lo bind.lo compare.lo delete.lo modify.lo modrdn.lo search.lo \
28         extended.lo referral.lo operational.lo \
29         attr.lo index.lo key.lo dbcache.lo filterindex.lo trans.lo \
30         dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo nextid.lo cache.lo
31
32 LDAP_INCDIR= ../../../include       
33 LDAP_LIBDIR= ../../../libraries
34
35 BUILD_OPT = "--enable-hdb"
36 BUILD_MOD = @BUILD_HDB@
37
38 mod_DEFS = -DSLAPD_IMPORT
39 MOD_DEFS = $(@BUILD_HDB@_DEFS)
40 MOD_LIBS = $(LDBM_LIBS)
41
42 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
43 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
44 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
45
46 .links : Makefile
47         @for i in $(XXSRCS); do \
48                 $(RM) $$i; \
49                 $(LN_S) $(XXDIR)/$$i . ; \
50         done
51         touch .links
52
53 $(XXSRCS) : .links
54
55 LIBBASE = back_hdb
56
57 XINCPATH = -I.. -I$(srcdir)/.. -I$(srcdir) -I$(XXDIR)
58 XDEFS = $(MODULES_CPPFLAGS)
59
60 depend-local-lib: .links
61
62 all-local-lib:  ../.backend
63
64 ../.backend: lib$(LIBBASE).a
65         @touch $@
66
67 veryclean-local: FORCE
68         $(RM) $(XXSRCS) .links