openldap/clients/tools/Makefile.in

65 lines
1.8 KiB
Makefile
Raw Normal View History

1998-10-25 09:41:42 +08:00
##
## Makefile for LDAP tools
##
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
XLIBS = -lldif -lldap -llber -llutil
XXLIBS = $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c
1998-10-25 09:41:42 +08:00
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd ldappasswd
1998-10-25 09:41:42 +08:00
ldapsearch: ldsversion.o
$(LTLINK) -o $@ ldapsearch.o ldsversion.o $(LIBS)
1998-10-25 09:41:42 +08:00
ldapmodify: ldmversion.o
$(LTLINK) -o $@ ldapmodify.o ldmversion.o $(LIBS)
1998-10-25 09:41:42 +08:00
ldapdelete: lddversion.o
$(LTLINK) -o $@ ldapdelete.o lddversion.o $(LIBS)
1998-10-25 09:41:42 +08:00
ldapmodrdn: ldrversion.o
$(LTLINK) -o $@ ldapmodrdn.o ldrversion.o $(LIBS)
1998-10-25 09:41:42 +08:00
ldappasswd: ldpversion.o
$(LTLINK) -o $@ ldappasswd.o ldpversion.o $(LIBS)
1998-10-25 09:41:42 +08:00
ldapadd: ldapmodify
1999-06-27 12:02:07 +08:00
@-$(RM) $@$(EXEEXT)
1999-06-06 13:32:55 +08:00
$(LN_H) ldapmodify$(EXEEXT) ldapadd$(EXEEXT)
1998-10-25 09:41:42 +08:00
ldsversion.c: ldapsearch.o $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) ldapsearch > $@
1998-10-25 09:41:42 +08:00
ldmversion.c: ldapmodify.o $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) ldapmodify > $@
1998-10-25 09:41:42 +08:00
lddversion.c: ldapdelete.o $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) ldapdelete > $@
ldpversion.c: ldappasswd.o $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) ldappasswd > $@
1998-10-25 09:41:42 +08:00
ldrversion.c: ldapmodrdn.o $(LDAP_LIBDEPEND)
@-$(RM) $@
$(MKVERSION) ldapmodrdn > $@
1998-10-25 09:41:42 +08:00
install-local: FORCE
-$(MKDIR) $(bindir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapsearch $(bindir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodify $(bindir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapdelete $(bindir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldapmodrdn $(bindir)
$(LTINSTALL) $(INSTALLFLAGS) -m 755 ldappasswd $(bindir)
1999-06-06 13:32:55 +08:00
$(RM) $(bindir)/ldapadd$(EXEEXT)
$(LN) $(bindir)/ldapmodify$(EXEEXT) $(bindir)/ldapadd$(EXEEXT)