1 # Makefile.in for LDAP -lldap
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2005 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>.
16 LIBRARY = libldap_r.la
18 PROGRAMS = apitest ltest
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 kbind.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 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 groupings.c txn.c ppolicy.c
32 SRCS = threads.c rdwr.c tpool.c rq.c \
33 thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
35 OBJS = threads.lo rdwr.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 \
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 kbind.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 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 groupings.lo txn.lo ppolicy.lo
49 LDAP_INCDIR= ../../include
50 LDAP_LIBDIR= ../../libraries
52 LIB_DEFS = -DLDAP_LIBRARY
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)
62 @for i in $(XXSRCS); do \
64 $(LN_S) $(XXDIR)/$$i . ; \
75 apitest: $(XLIBS) apitest.o
76 $(LTLINK) -o $@ apitest.o $(LIBS)
77 ltest: $(XLIBS) test.o
78 $(LTLINK) -o $@ test.o $(LIBS)
80 install-local: $(CFFILES) FORCE
81 -$(MKDIR) $(DESTDIR)$(libdir)
82 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
83 $(LTFINISH) $(DESTDIR)$(libdir)