1# Makefile.in for LDAP -lldap 2# $OpenLDAP$ 3## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4## 5## Copyright 1998-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 16LIBRARY = libldap.la 17 18PROGRAMS = apitest dntest ftest ltest urltest 19 20SRCS = 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 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 rb.c rb_response.c deref.c ldif.c fetch.c 32 33OBJS = 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 \ 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 rb.lo rb_response.lo deref.lo ldif.lo fetch.lo 45 46LDAP_INCDIR= ../../include 47LDAP_LIBDIR= ../../libraries 48 49LIB_DEFS = -DLDAP_LIBRARY 50 51XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A) 52XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS) 53NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) 54UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) 55 56apitest: $(XLIBS) apitest.o 57 $(LTLINK) -o $@ apitest.o $(LIBS) 58dntest: $(XLIBS) dntest.o 59 $(LTLINK) -o $@ dntest.o $(LIBS) 60ftest: $(XLIBS) ftest.o 61 $(LTLINK) -o $@ ftest.o $(LIBS) 62ltest: $(XLIBS) test.o 63 $(LTLINK) -o $@ test.o $(LIBS) 64urltest: $(XLIBS) urltest.o 65 $(LTLINK) -o $@ urltest.o $(LIBS) 66 67rb_response.lo: ldap_rb_stats.h rb_response.c 68 69ldap_rb_stats.h: ldap_rb_stats.d 70 /usr/sbin/dtrace -h -s $< -o $(LDAP_INCDIR)/$@ 71 72CFFILES=ldap.conf 73 74install-local: $(CFFILES) FORCE 75 -$(MKDIR) $(DESTDIR)$(sysconfdir) 76 @for i in $(CFFILES); do \ 77 if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \ 78 echo "installing $$i in $(sysconfdir)"; \ 79 echo "$(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i"; \ 80 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i; \ 81 else \ 82 echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \ 83 fi; \ 84 $(INSTALL) $(INSTALLFLAGS) -m 644 $(srcdir)/$$i $(DESTDIR)$(sysconfdir)/$$i.default; \ 85 done 86 87