]> git.sur5r.net Git - openldap/blob - libraries/libldap_r/Makefile.in
9d6f91c12c3620b16e4ee059b01eda9d818cb780
[openldap] / libraries / libldap_r / 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_r.la
17
18 PROGRAMS = apitest ltest
19
20 XXDIR = $(srcdir)/../libldap
21 XXSRCS    = apitest.c test.c \
22         bind.c open.c result.c error.c compare.c search.c \
23         controls.c messages.c references.c extended.c cyrus.c \
24         modify.c add.c modrdn.c delete.c abandon.c \
25         sasl.c sbind.c unbind.c cancel.c \
26         filter.c free.c sort.c passwd.c whoami.c \
27         getdn.c getentry.c getattr.c getvalues.c addentry.c \
28         request.c os-ip.c url.c pagectrl.c sortctrl.c vlvctrl.c \
29         init.c options.c print.c string.c util-int.c schema.c \
30         charray.c tls.c os-local.c dnssrv.c utf-8.c utf-8-conv.c \
31         turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c
32 SRCS    = threads.c rdwr.c rmutex.c tpool.c rq.c \
33         thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
34         thr_pth.c thr_stub.c thr_debug.c
35 OBJS    = threads.lo rdwr.lo rmutex.lo tpool.lo  rq.lo \
36         thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
37         thr_pth.lo thr_stub.lo thr_debug.lo \
38         bind.lo open.lo result.lo error.lo compare.lo search.lo \
39         controls.lo messages.lo references.lo extended.lo cyrus.lo \
40         modify.lo add.lo modrdn.lo delete.lo abandon.lo \
41         sasl.lo sbind.lo unbind.lo cancel.lo \
42         filter.lo free.lo sort.lo passwd.lo whoami.lo \
43         getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
44         request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
45         init.lo options.lo print.lo string.lo util-int.lo schema.lo \
46         charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
47         turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo
48
49 LDAP_INCDIR= ../../include       
50 LDAP_LIBDIR= ../../libraries
51
52 LIB_DEFS = -DLDAP_LIBRARY
53
54 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
55 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
56 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
57 XXXLIBS = $(LTHREAD_LIBS)
58 NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
59 UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
60
61 .links : Makefile
62         @for i in $(XXSRCS); do \
63                 $(RM) $$i ; \
64                 $(LN_S) $(XXDIR)/$$i . ; \
65         done
66         touch .links
67
68 $(XXSRCS) : .links
69
70 clean-local: FORCE
71         @$(RM) .links
72
73 depend-common: .links
74
75 apitest:        $(XLIBS) apitest.o
76         $(LTLINK) -o $@ apitest.o $(LIBS)
77 ltest:  $(XLIBS) test.o
78         $(LTLINK) -o $@ test.o $(LIBS)
79
80 install-local: $(CFFILES) FORCE
81         -$(MKDIR) $(DESTDIR)$(libdir)
82         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
83         $(LTFINISH) $(DESTDIR)$(libdir)
84