1998-12-19 11:24:36 +08:00
|
|
|
##
|
|
|
|
## Makefile.in for LDAP -lldap
|
|
|
|
##
|
|
|
|
LIBRARY = libldap_r.la
|
|
|
|
XLIBRARY = ../libldap_r.a
|
|
|
|
|
|
|
|
PROGRAMS = apitest ltest ttest
|
|
|
|
|
1999-02-05 02:13:51 +08:00
|
|
|
XXDIR = $(srcdir)/../libldap
|
1998-12-20 08:58:55 +08:00
|
|
|
XXSRCS = apitest.c test.c tmpltest.c \
|
1998-12-23 10:30:44 +08:00
|
|
|
bind.c controls.c open.c result.c error.c compare.c search.c \
|
1998-12-19 11:24:36 +08:00
|
|
|
modify.c add.c modrdn.c delete.c abandon.c ufn.c cache.c \
|
|
|
|
getfilter.c sbind.c kbind.c unbind.c friendly.c cldap.c \
|
|
|
|
free.c disptmpl.c srchpref.c dsparse.c tmplout.c sort.c \
|
|
|
|
getdn.c getentry.c getattr.c getvalues.c addentry.c \
|
|
|
|
request.c getdxbyname.c os-ip.c url.c charset.c \
|
1999-01-28 12:34:55 +08:00
|
|
|
init.c options.c print.c string.c util-int.c
|
1999-01-15 22:54:25 +08:00
|
|
|
SRCS = thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
|
1999-01-28 12:34:55 +08:00
|
|
|
thr_sleep.c thr_stub.c rdwr.c
|
1998-12-23 10:30:44 +08:00
|
|
|
OBJS = bind.lo controls.lo open.lo result.lo error.lo compare.lo search.lo \
|
1998-12-19 11:24:36 +08:00
|
|
|
modify.lo add.lo modrdn.lo delete.lo abandon.lo ufn.lo cache.lo \
|
|
|
|
getfilter.lo sbind.lo kbind.lo unbind.lo friendly.lo cldap.lo \
|
|
|
|
free.lo disptmpl.lo srchpref.lo dsparse.lo tmplout.lo sort.lo \
|
|
|
|
getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo \
|
|
|
|
request.lo getdxbyname.lo os-ip.lo url.lo charset.lo \
|
1999-01-28 12:34:55 +08:00
|
|
|
init.lo options.lo print.lo string.lo util-int.lo \
|
1999-01-15 22:54:25 +08:00
|
|
|
thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
|
1999-01-28 12:34:55 +08:00
|
|
|
thr_sleep.lo thr_stub.lo rdwr.lo
|
1998-12-19 11:24:36 +08:00
|
|
|
|
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
1998-12-20 08:58:55 +08:00
|
|
|
XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
|
1999-01-28 12:34:55 +08:00
|
|
|
XLIBS = -lldap_r -llber
|
1999-02-05 03:21:04 +08:00
|
|
|
XXLIBS = $(LUTIL_LIBS) $(KRB_LIBS)
|
1999-01-14 09:38:32 +08:00
|
|
|
XXXLIBS = $(LTHREAD_LIBS)
|
1998-12-19 11:24:36 +08:00
|
|
|
|
1999-01-28 12:34:55 +08:00
|
|
|
.links :
|
1998-12-20 08:58:55 +08:00
|
|
|
@for i in $(XXSRCS); do \
|
1998-12-19 11:24:36 +08:00
|
|
|
$(RM) $$i ; \
|
1998-12-20 08:58:55 +08:00
|
|
|
$(LN_S) $(XXDIR)/$$i . ; \
|
1998-12-19 11:24:36 +08:00
|
|
|
done
|
|
|
|
touch .links
|
|
|
|
|
1998-12-20 08:58:55 +08:00
|
|
|
$(XXSRCS) : .links
|
1998-12-19 11:24:36 +08:00
|
|
|
|
|
|
|
clean-local: FORCE
|
1998-12-20 08:58:55 +08:00
|
|
|
@$(RM) .links
|
|
|
|
|
|
|
|
depend-common: .links
|
1998-12-19 11:24:36 +08:00
|
|
|
|
|
|
|
apitest: $(LIBRARY) apitest.o $(LDAP_LIBLBER_DEPEND)
|
|
|
|
$(LTLINK) $(LDFLAGS) -o $@ apitest.o $(LIBS)
|
|
|
|
ltest: $(LIBRARY) test.o $(LDAP_LIBLBER_DEPEND)
|
|
|
|
$(LTLINK) $(LDFLAGS) -o $@ test.o $(LIBS)
|
|
|
|
ttest: $(LIBRARY) tmpltest.o $(LDAP_LIBLBER_DEPEND)
|
|
|
|
$(LTLINK) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
|
|
|
|
|
|
|
|
CFFILES=ldap.conf ldapfilter.conf ldaptemplates.conf ldapsearchprefs.conf
|
|
|
|
|
|
|
|
install-local: $(CFFILES) FORCE
|
|
|
|
-$(MKDIR) $(libdir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
|
|
|
|
-$(MKDIR) $(sysconfdir)
|
|
|
|
@for i in $(CFFILES); do \
|
|
|
|
if test ! -f $(sysconfdir)/$$i; then \
|
|
|
|
echo "installing $$i in $(sysconfdir)"; \
|
|
|
|
echo "$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i"; \
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i; \
|
|
|
|
else \
|
|
|
|
echo "PRESERVING EXISTING CONFIGURATION FILE $(sysconfdir)/$$i" ; \
|
|
|
|
fi; \
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir)/$$i.default; \
|
|
|
|
done
|
|
|
|
-$(MKDIR) $(datadir)
|
|
|
|
-$(MV) $(datadir)/ldapfriendly $(datadir)/ldapfriendly-
|
|
|
|
$(INSTALL) $(INSTALLFLAGS) -m 644 ldapfriendly $(datadir)/ldapfriendly
|
|
|
|
|