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