1998-10-25 09:41:42 +08:00
|
|
|
##
|
|
|
|
## Makefile for LDAP tools
|
|
|
|
##
|
1998-12-06 11:44:28 +08:00
|
|
|
SRCS = ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c ldappasswd.c
|
|
|
|
OBJS = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o ldappasswd.o
|
1998-11-26 07:49:12 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
1999-01-14 09:31:43 +08:00
|
|
|
XLIBS = -lldif -lldap -llber -llutil
|
|
|
|
XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c
|
|
|
|
|
1998-12-06 11:44:28 +08:00
|
|
|
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd ldappasswd
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapsearch: ldsversion.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ ldapsearch.o ldsversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapmodify: ldmversion.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ ldapmodify.o ldmversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapdelete: lddversion.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ ldapdelete.o lddversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapmodrdn: ldrversion.o
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTLINK) -o $@ ldapmodrdn.o ldrversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1998-12-06 11:44:28 +08:00
|
|
|
ldappasswd: ldappasswd.o
|
1999-01-14 09:31:43 +08:00
|
|
|
$(LTLINK) -o $@ ldappasswd.o $(LIBS)
|
1998-12-06 11:44:28 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
ldapadd: ldapmodify
|
|
|
|
$(RM) $@
|
|
|
|
$(LN) ldapmodify ldapadd
|
|
|
|
|
|
|
|
ldsversion.c: ldapsearch.o $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Versionlds.c > $@)
|
|
|
|
|
|
|
|
ldmversion.c: ldapmodify.o $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Versionldm.c > $@)
|
|
|
|
|
|
|
|
lddversion.c: ldapdelete.o $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Versionldd.c > $@)
|
|
|
|
|
|
|
|
ldrversion.c: ldapmodrdn.o $(LDAP_LIBDEPEND)
|
|
|
|
$(RM) $@
|
|
|
|
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
|
|
|
|
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
-e "s|%VERSION%|$${v}|" \
|
|
|
|
< $(srcdir)/Versionldr.c > $@)
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
install-local: FORCE
|
1998-11-30 03:48:28 +08:00
|
|
|
-$(MKDIR) $(bindir)
|
1998-11-22 12:22:28 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(bindir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(bindir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(bindir)
|
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(bindir)
|
1998-12-06 11:44:28 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldappasswd $(bindir)
|
1998-11-21 02:12:31 +08:00
|
|
|
$(RM) $(bindir)/ldapadd
|
|
|
|
$(LN) $(bindir)/ldapmodify $(bindir)/ldapadd
|