]> git.sur5r.net Git - openldap/blob - libraries/libldap/Makefile.in
ed8c2b17e62cf248a0d8f18d2229a0adf7265040
[openldap] / libraries / libldap / Makefile.in
1 # Makefile.in for LDAP -lldap
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2008 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 LIBRARY = libldap.la
17
18 PROGRAMS = apitest dntest ftest ltest urltest
19
20 SRCS    = bind.c open.c result.c error.c compare.c search.c \
21         controls.c messages.c references.c extended.c cyrus.c \
22         modify.c add.c modrdn.c delete.c abandon.c \
23         sasl.c gssapi.c sbind.c unbind.c cancel.c  \
24         filter.c free.c sort.c passwd.c whoami.c \
25         getdn.c getentry.c getattr.c getvalues.c addentry.c \
26         request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
27         init.c options.c print.c string.c util-int.c schema.c \
28         charray.c tls.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
29         turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
30         assertion.c deref.c
31
32 OBJS    = bind.lo open.lo result.lo error.lo compare.lo search.lo \
33         controls.lo messages.lo references.lo extended.lo cyrus.lo \
34         modify.lo add.lo modrdn.lo delete.lo abandon.lo \
35         sasl.lo gssapi.lo sbind.lo unbind.lo cancel.lo \
36         filter.lo free.lo sort.lo passwd.lo whoami.lo \
37         getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
38         request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
39         init.lo options.lo print.lo string.lo util-int.lo schema.lo \
40         charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
41         turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo \
42         assertion.lo deref.lo
43
44 LDAP_INCDIR= ../../include       
45 LDAP_LIBDIR= ../../libraries
46
47 LIB_DEFS = -DLDAP_LIBRARY
48
49 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
50 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
51 NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
52 UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
53
54 apitest:        $(XLIBS) apitest.o
55         $(LTLINK) -o $@ apitest.o $(LIBS)
56 dntest: $(XLIBS) dntest.o
57         $(LTLINK) -o $@ dntest.o $(LIBS)
58 ftest:  $(XLIBS) ftest.o
59         $(LTLINK) -o $@ ftest.o $(LIBS)
60 ltest:  $(XLIBS) test.o
61         $(LTLINK) -o $@ test.o $(LIBS)
62 urltest: $(XLIBS) urltest.o
63         $(LTLINK) -o $@ urltest.o $(LIBS)
64
65 CFFILES=ldap.conf
66
67 install-local: $(CFFILES) FORCE
68         -$(MKDIR) $(DESTDIR)$(libdir)
69         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
70         $(LTFINISH) $(DESTDIR)$(libdir)
71         -$(MKDIR) $(DESTDIR)$(sysconfdir)
72         @for i in $(CFFILES); do \
73                 if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
74                         echo "installing $$i in $(sysconfdir)"; \
75                         echo "$(INSTALL) $(INSTALLFLAGS) -m 644  $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i"; \
76                         $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i; \
77                 else \
78                         echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
79                 fi; \
80                 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.default; \
81         done
82