1 # Makefile.in for LDAP -lldap
2 # $OpenLDAP: pkg/ldap/libraries/libldap/Makefile.in,v 1.79.2.5 2008/07/09 00:29:57 quanah Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
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>.
18 PROGRAMS
= apitest dntest ftest ltest urltest
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 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 \
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 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 \
44 LDAP_INCDIR
= ..
/..
/include
45 LDAP_LIBDIR
= ..
/..
/libraries
47 LIB_DEFS
= -DLDAP_LIBRARY
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
)
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
)
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; \
78 echo
"PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
80 $(INSTALL
) $(INSTALLFLAGS
) -m
644 $(srcdir)/$$i $(DESTDIR
)$(sysconfdir
)/$$i.default
; \