]> git.sur5r.net Git - openldap/blob - libraries/libldap_r/Makefile.in
Cyrus SASL uses screwy terms.
[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 os-local.c dnssrv.c \
20         utf-8.c
21 SRCS    = thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
22         thr_pth.c thr_sleep.c thr_stub.c rdwr.c
23 OBJS    = extended.lo \
24         bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
25         modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
26         getfilter.lo sasl.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
27         free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \
28         getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
29         request.lo getdxbyname.lo os-ip.lo url.lo charset.lo \
30         init.lo options.lo print.lo string.lo util-int.lo schema.lo \
31         thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
32         thr_pth.lo thr_sleep.lo thr_stub.lo rdwr.lo \
33         charray.lo digest.lo tls.lo dn.lo os-local.lo dnssrv.lo \
34         utf-8.lo
35
36 LDAP_INCDIR= ../../include       
37 LDAP_LIBDIR= ../../libraries
38
39 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
40 XLIBS = -lldap_r -llber -llutil
41 XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
42 XXXLIBS = $(LTHREAD_LIBS)
43
44 LINKAGE = @LT_LIB_LINKAGE@
45
46 NT_DYN_LIB_LIBS  = -llber $(AC_LIBS)
47 NT_DYN_LIB_DEFS  = -DLIBLBER_DECL=dllimport
48 NT_DYN_TEST_DEFS = -DLIBLBER_DECL=dllimport -DLIBLDAP_DECL=dllimport
49
50 NT_XXLIBS = $(SECURITY_LIBS)
51
52 # Extras for building the library
53 EXTRA_DEFS = $(@PLAT@_@LIB_LINKAGE@_LIB_DEFS)
54 EXTRA_LIBS = $(@PLAT@_@LIB_LINKAGE@_LIB_LIBS) $(@PLAT@_XXLIBS)
55
56 # Only the test programs will pick up these defs.
57 CPPFLAGS = $(@PLAT@_@LIB_LINKAGE@_TEST_DEFS)
58
59 .links :
60         @for i in $(XXSRCS); do \
61                 $(RM) $$i ; \
62                 $(LN_S) $(XXDIR)/$$i . ; \
63         done
64         touch .links
65
66 $(XXSRCS) : .links
67
68 clean-local: FORCE
69         @$(RM) .links
70
71 depend-common: .links
72
73 apitest:        $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
74         $(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
75 ltest:  $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
76         $(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
77 ttest:  $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
78         $(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
79
80 install-local: $(CFFILES) FORCE
81         -$(MKDIR) $(DESTDIR)$(libdir)
82         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)