1 # Makefile.in for back-bdb
3 ## Copyright 1998-2003 The OpenLDAP Foundation.
4 ## All rights reserved.
6 ## Redistribution and use in source and binary forms, with or without
7 ## modification, are permitted only as authorized by the OpenLDAP
10 ## A copy of this license is available in the file LICENSE in the
11 ## top-level directory of the distribution or, alternatively, at
12 ## <http://www.OpenLDAP.org/license.html>.
14 SRCS = init.c tools.c config.c \
15 add.c bind.c compare.c delete.c modify.c modrdn.c search.c \
16 extended.c passwd.c referral.c operational.c \
17 attr.c index.c key.c dbcache.c filterindex.c \
18 dn2entry.c dn2id.c error.c id2entry.c idl.c \
19 nextid.c cache.c trans.c ctxcsn.c
21 OBJS = init.lo tools.lo config.lo \
22 add.lo bind.lo compare.lo delete.lo modify.lo modrdn.lo search.lo \
23 extended.lo passwd.lo referral.lo operational.lo \
24 attr.lo index.lo key.lo dbcache.lo filterindex.lo \
25 dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo \
26 nextid.lo cache.lo trans.lo ctxcsn.lo
28 LDAP_INCDIR= ../../../include
29 LDAP_LIBDIR= ../../../libraries
31 BUILD_OPT = "--enable-bdb"
32 BUILD_MOD = @BUILD_BDB@
33 BUILD_MOD_DYNAMIC = @BUILD_BDB_DYNAMIC@
35 mod_DEFS = -DSLAPD_IMPORT
36 MOD_DEFS = $(@BUILD_BDB@_DEFS)
38 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
39 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
40 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
44 XINCPATH = -I.. -I$(srcdir)/..
45 XDEFS = $(MODULES_CPPFLAGS)
47 all-local-lib: ../.backend
49 ../.backend: lib$(LIBBASE).a