1 # Makefile for back-hdb
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2007 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
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>.
16 ## Copyright 2003 Howard Chu @ Symas Corp. See master COPYRIGHT file for terms.
18 XXDIR = $(srcdir)/../back-bdb
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 \
27 OBJS = init.lo tools.lo config.lo \
28 add.lo bind.lo compare.lo delete.lo modify.lo modrdn.lo search.lo \
29 extended.lo referral.lo operational.lo \
30 attr.lo index.lo key.lo dbcache.lo filterindex.lo trans.lo \
31 dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo nextid.lo cache.lo \
34 LDAP_INCDIR= ../../../include
35 LDAP_LIBDIR= ../../../libraries
37 BUILD_OPT = "--enable-hdb"
38 BUILD_MOD = @BUILD_HDB@
40 mod_DEFS = -DSLAPD_IMPORT
41 MOD_DEFS = $(@BUILD_HDB@_DEFS)
42 MOD_LIBS = $(BDB_LIBS)
44 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
45 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
46 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
49 @for i in $(XXSRCS); do \
51 $(LN_S) $(XXDIR)/$$i . ; \
59 XINCPATH = -I.. -I$(srcdir)/.. -I$(srcdir) -I$(XXDIR)
60 XDEFS = $(MODULES_CPPFLAGS)
64 all-local-lib: ../.backend
66 ../.backend: lib$(LIBBASE).a
69 veryclean-local: FORCE
70 $(RM) $(XXSRCS) .links