1 # Makefile.in for LDAP -lldap
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2013 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 gssapi.c sbind.c unbind.c cancel.c \
26 filter.c free.c sort.c passwd.c whoami.c vc.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 os-local.c dnssrv.c utf-8.c utf-8-conv.c \
31 tls2.c tls_o.c tls_g.c tls_m.c \
32 turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
33 assertion.c deref.c ldifutil.c ldif.c fetch.c
34 SRCS = threads.c rdwr.c rmutex.c tpool.c rq.c \
35 thr_posix.c thr_cthreads.c thr_thr.c thr_nt.c \
36 thr_pth.c thr_stub.c thr_debug.c
37 OBJS = threads.lo rdwr.lo rmutex.lo tpool.lo rq.lo \
38 thr_posix.lo thr_cthreads.lo thr_thr.lo thr_nt.lo \
39 thr_pth.lo thr_stub.lo thr_debug.lo \
40 bind.lo open.lo result.lo error.lo compare.lo search.lo \
41 controls.lo messages.lo references.lo extended.lo cyrus.lo \
42 modify.lo add.lo modrdn.lo delete.lo abandon.lo \
43 sasl.lo gssapi.lo sbind.lo unbind.lo cancel.lo \
44 filter.lo free.lo sort.lo passwd.lo whoami.lo vc.lo \
45 getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
46 request.lo os-ip.lo url.lo pagectrl.lo sortctrl.lo vlvctrl.lo \
47 init.lo options.lo print.lo string.lo util-int.lo schema.lo \
48 charray.lo os-local.lo dnssrv.lo utf-8.lo utf-8-conv.lo \
49 tls2.lo tls_o.lo tls_g.lo tls_m.lo \
50 turn.lo ppolicy.lo dds.lo txn.lo ldap_sync.lo stctrl.lo \
51 assertion.lo deref.lo ldifutil.lo ldif.lo fetch.lo
53 LDAP_INCDIR= ../../include
54 LDAP_LIBDIR= ../../libraries
56 LIB_DEFS = -DLDAP_LIBRARY
58 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
59 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
60 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
61 XXXLIBS = $(LTHREAD_LIBS)
62 NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
63 UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
66 @for i in $(XXSRCS); do \
68 $(LN_S) $(XXDIR)/$$i . ; \
79 apitest: $(XLIBS) apitest.o
80 $(LTLINK) -o $@ apitest.o $(LIBS)
81 ltest: $(XLIBS) test.o
82 $(LTLINK) -o $@ test.o $(LIBS)
84 install-local: $(CFFILES) FORCE
85 -$(MKDIR) $(DESTDIR)$(libdir)
86 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
87 $(LTFINISH) $(DESTDIR)$(libdir)