]> git.sur5r.net Git - openldap/blob - servers/slapd/back-ldap/Makefile.in
ITS#2740 - link librewrite statically into back-ldap when it's built
[openldap] / servers / slapd / back-ldap / Makefile.in
1 # Makefile.in for back-ldap
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2003 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 config.c search.c bind.c unbind.c add.c compare.c \
17                 delete.c modify.c modrdn.c \
18                 suffixmassage.c map.c extended.c chain.c
19 OBJS    = init.lo config.lo search.lo bind.lo unbind.lo add.lo compare.lo \
20                 delete.lo modify.lo modrdn.lo \
21                 suffixmassage.lo map.lo extended.lo chain.lo
22
23 LDAP_INCDIR= ../../../include       
24 LDAP_LIBDIR= ../../../libraries
25
26 BUILD_OPT = "--enable-ldap"
27 BUILD_MOD = @BUILD_LDAP@
28 BUILD_MOD_DYNAMIC = @BUILD_LDAP_DYNAMIC@
29
30 mod_DEFS = -DSLAPD_IMPORT
31 MOD_DEFS = $(@BUILD_LDAP@_DEFS)
32
33 mod_REWRITE = $(LDAP_LIBREWRITE_A)
34
35 REWRITE = $(@BUILD_META@_REWRITE) $(@BUILD_LDAP@_REWRITE)
36 shared_LDAP_LIBS = $(LDAP_LIBLDAP_R_LA) $(LDAP_LIBLBER_LA)
37 NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(REWRITE)
38 UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS) $(REWRITE)
39
40 LIBBASE = back_ldap
41
42 XINCPATH = -I.. -I$(srcdir)/..
43 XDEFS = $(MODULES_CPPFLAGS)
44
45 all-local-lib:  ../.backend
46
47 ../.backend: lib$(LIBBASE).a
48         @touch $@
49