2 ## Makefile.in for LDAP -lldap
7 LDAP_INCDIR= ../../include
8 LDAP_LIBDIR= ../../libraries
11 SRCS = bind.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 OBJS = bind.o open.o result.o error.o compare.o search.o \
18 modify.o add.o modrdn.o delete.o abandon.o ufn.o cache.o \
19 getfilter.o sbind.o kbind.o unbind.o friendly.o cldap.o \
20 free.o disptmpl.o srchpref.o dsparse.o tmplout.o sort.o \
21 getdn.o getentry.o getattr.o getvalues.o addentry.o \
22 request.o getdxbyname.o os-ip.o url.o charset.o
24 LIBS = -L. -L../liblber -lldap -llber $(AC_LIBS)
25 LIBLBER = ../liblber/liblber.a
27 ltest: $(LIBRARY) test.o $(LIBLBER)
28 $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
29 ttest: $(LIBRARY) tmpltest.o $(LIBLBER)
30 $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
32 CFFILES= ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf
34 install-local: $(LIBRARY) $(CFFILES) FORCE
35 -$(MKDIR) -p $(libdir)
36 $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
37 @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
38 -$(MKDIR) -p $(sysconfdir)
39 @for i in $(CFFILES); do \
40 echo "installing $$i in $(sysconfdir)"; \
41 if test -f $(sysconfdir)/$$i; then \
42 $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i-; \
44 $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir); \