2 ## Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
3 ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 ## Makefile.in for LDAP -lldap
9 PROGRAMS = apitest ltest
11 XXDIR = $(srcdir)/../libldap
12 XXSRCS = apitest.c test.c \
13 bind.c open.c result.c error.c compare.c search.c \
14 controls.c messages.c references.c extended.c cyrus.c \
15 modify.c add.c modrdn.c delete.c abandon.c cache.c \
16 getfilter.c sasl.c sbind.c kbind.c unbind.c \
17 filter.c free.c dsparse.c sort.c \
18 getdn.c getentry.c getattr.c getvalues.c addentry.c \
19 request.c os-ip.c url.c sortctrl.c vlvctrl.c \
20 init.c options.c print.c string.c util-int.c schema.c \
21 charray.c tls.c os-local.c dnssrv.c utf-8.c utf-8-conv.c
22 SRCS = threads.c rdwr.c tpool.c \
23 thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
25 OBJS = threads.lo rdwr.lo tpool.lo \
26 thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
27 thr_pth.lo thr_stub.lo \
28 bind.lo open.lo result.lo error.lo compare.lo search.lo \
29 controls.lo messages.lo references.lo extended.lo cyrus.lo \
30 modify.lo add.lo modrdn.lo delete.lo abandon.lo cache.lo \
31 getfilter.lo sasl.lo sbind.lo kbind.lo unbind.lo \
32 filter.lo free.lo dsparse.lo sort.lo \
33 getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
34 request.lo os-ip.lo url.lo sortctrl.lo vlvctrl.lo \
35 init.lo options.lo print.lo string.lo util-int.lo schema.lo \
36 charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo
38 LDAP_INCDIR= ../../include
39 LDAP_LIBDIR= ../../libraries
41 LIB_DEFS = -DLDAP_LIBRARY
43 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
44 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
45 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
46 XXXLIBS = $(LTHREAD_LIBS)
47 NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
48 UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
51 @for i in $(XXSRCS); do \
53 $(LN_S) $(XXDIR)/$$i . ; \
64 apitest: $(XLIBS) apitest.o
65 $(LTLINK) -o $@ apitest.o $(LIBS)
66 ltest: $(XLIBS) test.o
67 $(LTLINK) -o $@ test.o $(LIBS)
69 install-local: $(CFFILES) FORCE
70 -$(MKDIR) $(DESTDIR)$(libdir)
71 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)