1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
|
|
|
## Makefile for LDAP tools
|
|
|
|
##
|
2002-01-29 05:24:40 +08:00
|
|
|
SRCS = ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c \
|
2002-12-13 00:32:26 +08:00
|
|
|
ldappasswd.c ldapwhoami.c ldapcompare.c common.c
|
2002-01-29 05:24:40 +08:00
|
|
|
OBJS = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o \
|
2002-12-13 00:32:26 +08:00
|
|
|
ldappasswd.o ldapwhoami.o ldapcompare.o common.o
|
1998-11-26 07:49:12 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LDAP_INCDIR= ../../include
|
|
|
|
LDAP_LIBDIR= ../../libraries
|
|
|
|
|
2002-02-11 06:42:51 +08:00
|
|
|
XLIBS = $(LDAP_LIBLDIF_A) $(LDAP_L)
|
1999-08-05 10:25:19 +08:00
|
|
|
XXLIBS = $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
2002-01-29 05:24:40 +08:00
|
|
|
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c \
|
2002-01-29 15:33:11 +08:00
|
|
|
ldpversion.c ldwversion.c ldcversion.c
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-01-29 05:24:40 +08:00
|
|
|
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn ldapadd \
|
2002-01-29 15:33:11 +08:00
|
|
|
ldappasswd ldapwhoami ldapcompare
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapsearch: ldsversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapsearch.o common.o ldsversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapmodify: ldmversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapmodify.o common.o ldmversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapdelete: lddversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapdelete.o common.o lddversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
|
|
|
ldapmodrdn: ldrversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapmodrdn.o common.o ldrversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
1999-04-28 13:40:17 +08:00
|
|
|
ldappasswd: ldpversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldappasswd.o common.o ldpversion.o $(LIBS)
|
1998-12-06 11:44:28 +08:00
|
|
|
|
2002-01-29 05:24:40 +08:00
|
|
|
ldapwhoami: ldwversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapwhoami.o common.o ldwversion.o $(LIBS)
|
2002-01-29 05:24:40 +08:00
|
|
|
|
2002-01-29 15:33:11 +08:00
|
|
|
ldapcompare: ldcversion.o
|
2002-12-13 00:32:26 +08:00
|
|
|
$(LTLINK) -o $@ ldapcompare.o common.o ldcversion.o $(LIBS)
|
2002-01-29 15:33:11 +08:00
|
|
|
|
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
|
|
|
|
2002-01-29 15:33:11 +08:00
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldsversion.c: ldapsearch.o common.o $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapsearch > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldmversion.c: ldapmodify.o common.o $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapmodify > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
lddversion.c: ldapdelete.o common.o $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapdelete > $@
|
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldpversion.c: ldappasswd.o common.o $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldappasswd > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldrversion.c: ldapmodrdn.o common.o $(XLIBS)
|
1999-04-28 13:40:17 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapmodrdn > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldwversion.c: ldapwhoami.o common.o $(XLIBS)
|
2002-01-29 05:24:40 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapwhoami > $@
|
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
ldcversion.c: ldapcompare.o common.o $(XLIBS)
|
2002-01-29 15:33:11 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) ldapcompare > $@
|
|
|
|
|
|
|
|
|
1998-11-22 12:22:28 +08:00
|
|
|
install-local: FORCE
|
1999-09-23 05:51:30 +08:00
|
|
|
-$(MKDIR) $(DESTDIR)$(bindir)
|
1999-10-28 15:31:59 +08:00
|
|
|
@( \
|
|
|
|
for prg in $(PROGRAMS); do \
|
2000-05-31 02:23:56 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 $$prg$(EXEEXT) \
|
1999-10-28 15:31:59 +08:00
|
|
|
$(DESTDIR)$(bindir); \
|
|
|
|
done \
|
|
|
|
)
|
1999-09-23 05:51:30 +08:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
|
1999-09-23 19:13:29 +08:00
|
|
|
$(LN) $(DESTDIR)$(bindir)/ldapmodify$(EXEEXT) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
|
1999-10-28 15:31:59 +08:00
|
|
|
|