]> git.sur5r.net Git - openldap/blob - libraries/libldap_r/Makefile.in
Merge in all devel changes since 2.0-alpha2.
[openldap] / libraries / libldap_r / Makefile.in
1 # $OpenLDAP$
2 ##
3 ## Makefile.in for LDAP -lldap
4 ##
5 LIBRARY = libldap_r.la
6 XLIBRARY = ../libldap_r.a
7
8 PROGRAMS = apitest ltest ttest
9
10 XXDIR = $(srcdir)/../libldap
11 XXSRCS  = apitest.c test.c tmpltest.c extended.c \
12         bind.c controls.c open.c result.c error.c compare.c search.c \
13         modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
14         getfilter.c sasl.c sbind.c kbind.c unbind.c friendly.c cldap.c \
15         free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
16         getdn.c getentry.c getattr.c getvalues.c addentry.c \
17         request.c getdxbyname.c os-ip.c url.c charset.c \
18         init.c options.c print.c string.c util-int.c schema.c \
19         charray.c digest.c tls.c dn.c
20 SRCS    = thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
21         thr_pth.c thr_sleep.c thr_stub.c rdwr.c
22 OBJS    = extended.lo \
23         bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
24         modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
25         getfilter.lo sasl.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
26         free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \
27         getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
28         request.lo getdxbyname.lo os-ip.lo url.lo charset.lo \
29         init.lo options.lo print.lo string.lo util-int.lo schema.lo \
30         thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
31         thr_pth.lo thr_sleep.lo thr_stub.lo rdwr.lo \
32         charray.lo digest.lo tls.lo dn.lo
33
34 LDAP_INCDIR= ../../include       
35 LDAP_LIBDIR= ../../libraries
36
37 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
38 XLIBS = -lldap_r -llber
39 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
40 XXXLIBS = $(LTHREAD_LIBS)
41
42 .links :
43         @for i in $(XXSRCS); do \
44                 $(RM) $$i ; \
45                 $(LN_S) $(XXDIR)/$$i . ; \
46         done
47         touch .links
48
49 $(XXSRCS) : .links
50
51 clean-local: FORCE
52         @$(RM) .links
53
54 depend-common: .links
55
56 apitest:        $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
57         $(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
58 ltest:  $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
59         $(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
60 ttest:  $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
61         $(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
62
63 install-local: $(CFFILES) FORCE
64         -$(MKDIR) $(libdir)
65         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)