]> git.sur5r.net Git - openldap/blob - libraries/libldap/Makefile.in
Add strdup.c from -llutil, renamed to ldap_strdup() and always used.
[openldap] / libraries / libldap / Makefile.in
1 ##
2 ## Makefile.in for LDAP -lldap
3 ##
4 LIBRARY = libldap.a
5 PROGRAMS = apitest ltest ttest
6
7 LDAP_INCDIR= ../../include       
8 LDAP_LIBDIR= ../../libraries
9
10
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         init.c options.c strdup.c
18 OBJS    = bind.o open.o result.o error.o compare.o search.o \
19         modify.o add.o modrdn.o delete.o abandon.o ufn.o cache.o \
20         getfilter.o sbind.o kbind.o unbind.o friendly.o cldap.o \
21         free.o disptmpl.o srchpref.o dsparse.o tmplout.o sort.o \
22         getdn.o getentry.o getattr.o getvalues.o addentry.o \
23         request.o getdxbyname.o os-ip.o url.o charset.o \
24         init.o options.o strdup.o
25
26 LIBS = -L$(LDAP_LIBDIR) -lldap -llber $(AC_LIBS)
27 LIBLBER = ../liblber/liblber.a
28
29 apitest:        $(LIBRARY) apitest.o $(LIBLBER)
30         $(CC) $(LDFLAGS) -o $@ apitest.o $(LIBS)
31 ltest:  $(LIBRARY) test.o $(LIBLBER)
32         $(CC) $(LDFLAGS) -o $@ test.o $(LIBS)
33 ttest:  $(LIBRARY) tmpltest.o $(LIBLBER)
34         $(CC) $(LDFLAGS) -o $@ tmpltest.o $(LIBS)
35
36 CFFILES= ldap.conf ldapfilter.conf ldapfriendly ldaptemplates.conf ldapsearchprefs.conf
37
38 install-local: $(LIBRARY) $(CFFILES) FORCE
39         -$(MKDIR) -p $(libdir)
40         $(INSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(libdir)
41         @(cd /tmp; $(RANLIB) $(libdir)/$(LIBRARY))
42         -$(MKDIR) -p $(sysconfdir)
43         @for i in $(CFFILES); do \
44                 echo "installing $$i in $(sysconfdir)"; \
45                 if test -f $(sysconfdir)/$$i; then \
46                         $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i-; \
47                 fi; \
48                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir); \
49         done