]> git.sur5r.net Git - openldap/blob - servers/slapd/back-mdb/Makefile.in
Remove symlinks from repo, add to Makefile
[openldap] / servers / slapd / back-mdb / Makefile.in
1 # Makefile.in for back-mdb
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 2011 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 SRCS = init.c tools.c config.c \
17         add.c bind.c compare.c delete.c modify.c modrdn.c search.c \
18         extended.c referral.c operational.c \
19         attr.c index.c key.c dbcache.c filterindex.c \
20         dn2entry.c dn2id.c error.c id2entry.c idl.c \
21         nextid.c monitor.c
22         
23 XXSRCS = mdb.c midl.c
24 XXHEADERS = mdb.h midl.h
25
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 \
30         dn2entry.lo dn2id.lo error.lo id2entry.lo idl.lo \
31         nextid.lo monitor.lo mdb.lo midl.lo
32
33 LDAP_INCDIR= ../../../include       
34 LDAP_LIBDIR= ../../../libraries
35
36 BUILD_OPT = "--enable-mdb"
37 BUILD_MOD = @BUILD_MDB@
38
39 mod_DEFS = -DSLAPD_IMPORT
40 MOD_DEFS = $(@BUILD_MDB@_DEFS)
41 MOD_LIBS = $(MDB_LIBS)
42
43 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
44 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
45 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
46
47 LIBBASE = back_mdb
48
49 XINCPATH = -I.. -I$(srcdir)/..
50 XDEFS = $(MODULES_CPPFLAGS)
51
52 all-local-lib:  ../.backend
53
54 ../.backend: lib$(LIBBASE).a
55         @touch $@
56
57 .links:
58         @for i in $(XXSRCS) $(XXHEADERS); do \
59                 $(RM) $$i; \
60                 ii=`find $(srcdir)/libmdb -name $$i`; \
61                 $(LN_S) $$ii . ; \
62         done
63         touch .links
64
65 $(XXSRCS) $(XXHEADERS): .links
66
67 depend-common: .links