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