]> git.sur5r.net Git - openldap/blob - libraries/libldap_r/Makefile.in
Fixed typo in
[openldap] / libraries / libldap_r / Makefile.in
1 ##
2 ## Makefile.in for LDAP -lldap
3 ##
4 LIBRARY = libldap_r.la
5 XLIBRARY = ../libldap_r.a
6
7 PROGRAMS = apitest ltest ttest
8
9 XXDIR = $(srcdir)/../libldap
10 XXSRCS  = apitest.c test.c tmpltest.c \
11         bind.c controls.c open.c result.c error.c compare.c search.c \
12         modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
13         getfilter.c sbind.c kbind.c unbind.c friendly.c cldap.c \
14         free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
15         getdn.c getentry.c getattr.c getvalues.c addentry.c \
16         request.c getdxbyname.c os-ip.c url.c charset.c \
17         init.c options.c print.c string.c util-int.c
18 SRCS    = thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
19         thr_sleep.c thr_stub.c rdwr.c
20 OBJS    = bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
21         modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
22         getfilter.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
23         free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \
24         getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
25         request.lo getdxbyname.lo os-ip.lo url.lo charset.lo \
26         init.lo options.lo print.lo string.lo util-int.lo \
27         thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
28         thr_sleep.lo thr_stub.lo rdwr.lo        
29
30 LDAP_INCDIR= ../../include       
31 LDAP_LIBDIR= ../../libraries
32
33 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
34 XLIBS = -lldap_r -llber
35 XXLIBS = $(LUTIL_LIBS) $(KRB_LIBS)
36 XXXLIBS = $(LTHREAD_LIBS)
37
38 .links :
39         @for i in $(XXSRCS); do \
40                 $(RM) $$i ; \
41                 $(LN_S) $(XXDIR)/$$i . ; \
42         done
43         touch .links
44
45 $(XXSRCS) : .links
46
47 clean-local: FORCE
48         @$(RM) .links
49
50 depend-common: .links
51
52 apitest:        $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
53         $(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
54 ltest:  $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
55         $(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
56 ttest:  $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
57         $(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
58
59 CFFILES=ldap.conf ldapfilter.conf ldaptemplates.conf ldapsearchprefs.conf
60
61 install-local: $(CFFILES) FORCE
62         -$(MKDIR) $(libdir)
63         $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
64         -$(MKDIR) $(sysconfdir)
65         @for i in $(CFFILES); do \
66                 if test ! -f $(sysconfdir)/$$i; then \
67                         echo "installing $$i in $(sysconfdir)"; \
68                         echo "$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i"; \
69                         $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i; \
70                 else \
71                         echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
72                 fi; \
73                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i.default; \
74         done
75         -$(MKDIR) $(datadir)
76         -$(MV) $(datadir)/ldapfriendly $(datadir)/ldapfriendly-
77         $(INSTALL) $(INSTALLFLAGS) -m 644 ldapfriendly $(datadir)/ldapfriendly
78