Use ol_version.h

This commit is contained in:
Howard Chu 2003-03-18 23:37:14 +00:00
parent 8d6ae6a236
commit 78f9fb45d4
8 changed files with 55 additions and 36 deletions

View File

@ -22,55 +22,47 @@ PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn \
ldappasswd ldapwhoami ldapcompare
ldapsearch: ldsversion.o
$(LTLINK) -o $@ ldapsearch.o common.o ldsversion.o $(LIBS)
ldapsearch: ldapsearch.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapsearch.o common.o $(LIBS)
ldapmodify: ldmversion.o
$(LTLINK) -o $@ ldapmodify.o common.o ldmversion.o $(LIBS)
ldapmodify: ldapmodify.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapmodify.o common.o $(LIBS)
ldapdelete: lddversion.o
$(LTLINK) -o $@ ldapdelete.o common.o lddversion.o $(LIBS)
ldapdelete: ldapdelete.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapdelete.o common.o $(LIBS)
ldapmodrdn: ldrversion.o
$(LTLINK) -o $@ ldapmodrdn.o common.o ldrversion.o $(LIBS)
ldapmodrdn: ldapmodrdn.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapmodrdn.o common.o $(LIBS)
ldappasswd: ldpversion.o
$(LTLINK) -o $@ ldappasswd.o common.o ldpversion.o $(LIBS)
ldappasswd: ldappasswd.o common.o $(XLIBS)
$(LTLINK) -o $@ ldappasswd.o common.o $(LIBS)
ldapwhoami: ldwversion.o
$(LTLINK) -o $@ ldapwhoami.o common.o ldwversion.o $(LIBS)
ldapwhoami: ldapwhoami.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapwhoami.o common.o $(LIBS)
ldapcompare: ldcversion.o
$(LTLINK) -o $@ ldapcompare.o common.o ldcversion.o $(LIBS)
ldapcompare: ldapcompare.o common.o $(XLIBS)
$(LTLINK) -o $@ ldapcompare.o common.o $(LIBS)
ldsversion.c: ldapsearch.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapsearch > $@
ldapsearch.o: $(srcdir)/ldapsearch.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
ldmversion.c: ldapmodify.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapmodify > $@
ldapmodify.o: $(srcdir)/ldapmodify.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
lddversion.c: ldapdelete.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapdelete > $@
ldapdelete.o: $(srcdir)/ldapdelete.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
ldpversion.c: ldappasswd.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldappasswd > $@
ldapmodrdn.o: $(srcdir)/ldapmodrdn.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
ldrversion.c: ldapmodrdn.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapmodrdn > $@
ldappasswd.o: $(srcdir)/ldappasswd.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
ldwversion.c: ldapwhoami.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapwhoami > $@
ldcversion.c: ldapcompare.o common.o $(XLIBS)
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapcompare > $@
ldapwhoami.o: $(srcdir)/ldapwhoami.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
ldapcompare.o: $(srcdir)/ldapcompare.c
$(CC) -c $(CFLAGS) $(CWD_DEF) -o $@ $<
install-local: FORCE
-$(MKDIR) $(DESTDIR)$(bindir)

View File

@ -35,6 +35,9 @@
#include "common.h"
#define _OLV_APP "ldapcompare"
#define _OLV_STATIC
#include "ol_version.h"
static int quiet = 0;

View File

@ -21,6 +21,10 @@
#include "common.h"
#define _OLV_APP "ldapdelete"
#define _OLV_STATIC
#include "ol_version.h"
static int prune = 0;

View File

@ -36,6 +36,10 @@
#include "common.h"
#define _OLV_APP "ldapmodify"
#define _OLV_STATIC
#include "ol_version.h"
static int ldapadd, force = 0;
static char *rejfile = NULL;

View File

@ -34,6 +34,10 @@
#include "common.h"
#define _OLV_APP "ldapmodrdn"
#define _OLV_STATIC
#include "ol_version.h"
static char *newSuperior = NULL;
static int remove_old_RDN = 0;

View File

@ -23,6 +23,10 @@
#include "common.h"
#define _OLV_APP "ldappasswd"
#define _OLV_STATIC
#include "ol_version.h"
static char *newpw = NULL;
static char *oldpw = NULL;

View File

@ -36,6 +36,10 @@
#include "common.h"
#define _OLV_APP "ldapsearch"
#define _OLV_STATIC
#include "ol_version.h"
static int scope = LDAP_SCOPE_SUBTREE;
static int deref = -1;

View File

@ -23,6 +23,10 @@
#include "common.h"
#define _OLV_APP "ldapwhoami"
#define _OLV_STATIC
#include "ol_version.h"
void
usage( void )