2003-11-26 10:58:56 +08:00
|
|
|
# Makefile for LDAP tools
|
1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
2005-01-22 03:38:13 +08:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
2020-01-10 00:50:21 +08:00
|
|
|
## Copyright 1998-2020 The OpenLDAP Foundation.
|
2003-11-26 10:58:56 +08:00
|
|
|
## All rights reserved.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
1998-10-25 09:41:42 +08:00
|
|
|
##
|
2003-11-26 10:58:56 +08:00
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
|
|
|
|
2002-01-29 05:24:40 +08:00
|
|
|
SRCS = ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c \
|
2010-12-15 05:39:08 +08:00
|
|
|
ldappasswd.c ldapwhoami.c ldapvc.c ldapcompare.c \
|
2008-10-20 04:35:18 +08:00
|
|
|
ldapexop.c ldapurl.c common.c
|
2002-01-29 05:24:40 +08:00
|
|
|
OBJS = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o \
|
2010-12-15 05:39:08 +08:00
|
|
|
ldappasswd.o ldapwhoami.o ldapvc.o ldapcompare.o \
|
2008-10-20 04:35:18 +08:00
|
|
|
ldapexop.o ldapurl.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
|
|
|
|
|
2003-01-21 04:48:06 +08:00
|
|
|
MKVOPTS = -s
|
|
|
|
|
2003-11-26 07:22:12 +08:00
|
|
|
XLIBS = $(LDAP_L)
|
2019-01-02 01:37:25 +08:00
|
|
|
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS) $(CLIENT_LIBS)
|
1999-01-10 10:25:41 +08:00
|
|
|
|
2012-01-29 06:09:24 +08:00
|
|
|
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c \
|
|
|
|
ldwversion.c ldvversion.c ldcversion.c ldeversion.c lduversion.c
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-02-10 07:21:15 +08:00
|
|
|
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn \
|
2010-12-15 05:39:08 +08:00
|
|
|
ldappasswd ldapwhoami ldapvc ldapcompare ldapexop ldapurl
|
2002-01-29 15:33:11 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapsearch: ldsversion.o
|
|
|
|
$(LTLINK) -o $@ ldapsearch.o common.o ldsversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapmodify: ldmversion.o
|
|
|
|
$(LTLINK) -o $@ ldapmodify.o common.o ldmversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapdelete: lddversion.o
|
|
|
|
$(LTLINK) -o $@ ldapdelete.o common.o lddversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapmodrdn: ldrversion.o
|
|
|
|
$(LTLINK) -o $@ ldapmodrdn.o common.o ldrversion.o $(LIBS)
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldappasswd: ldpversion.o
|
|
|
|
$(LTLINK) -o $@ ldappasswd.o common.o ldpversion.o $(LIBS)
|
1998-12-06 11:44:28 +08:00
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapwhoami: ldwversion.o
|
|
|
|
$(LTLINK) -o $@ ldapwhoami.o common.o ldwversion.o $(LIBS)
|
2002-01-29 05:24:40 +08:00
|
|
|
|
2010-12-15 05:39:08 +08:00
|
|
|
ldapvc: ldvversion.o
|
|
|
|
$(LTLINK) -o $@ ldapvc.o common.o ldvversion.o $(LIBS)
|
|
|
|
|
2003-03-29 08:28:00 +08:00
|
|
|
ldapcompare: ldcversion.o
|
|
|
|
$(LTLINK) -o $@ ldapcompare.o common.o ldcversion.o $(LIBS)
|
2002-01-29 15:33:11 +08:00
|
|
|
|
2006-01-07 01:46:52 +08:00
|
|
|
ldapexop: ldeversion.o
|
|
|
|
$(LTLINK) -o $@ ldapexop.o common.o ldeversion.o $(LIBS)
|
|
|
|
|
2008-10-20 04:35:18 +08:00
|
|
|
ldapurl: lduversion.o
|
|
|
|
$(LTLINK) -o $@ ldapurl.o lduversion.o $(LIBS)
|
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldsversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapsearch > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldsversion.o: ldapsearch.o common.o $(XLIBS)
|
|
|
|
|
|
|
|
ldmversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapmodify > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldmversion.o: ldapmodify.o common.o $(XLIBS)
|
|
|
|
|
|
|
|
lddversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapdelete > $@
|
1999-04-28 13:40:17 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
lddversion.o: ldapdelete.o common.o $(XLIBS)
|
|
|
|
|
|
|
|
ldpversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldappasswd > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldpversion.o: ldappasswd.o common.o $(XLIBS)
|
|
|
|
|
|
|
|
ldrversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapmodrdn > $@
|
1998-10-25 09:41:42 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldrversion.o: ldapmodrdn.o common.o $(XLIBS)
|
|
|
|
|
|
|
|
ldwversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapwhoami > $@
|
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldwversion.o: ldapwhoami.o common.o $(XLIBS)
|
|
|
|
|
2010-12-15 05:39:08 +08:00
|
|
|
ldvversion.c: Makefile
|
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapvc > $@
|
|
|
|
|
|
|
|
ldvversion.o: ldapvc.o common.o $(XLIBS)
|
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldcversion.c: Makefile
|
2003-03-29 08:28:00 +08:00
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapcompare > $@
|
2002-01-29 15:33:11 +08:00
|
|
|
|
2003-03-29 08:33:39 +08:00
|
|
|
ldcversion.o: ldapcompare.o common.o $(XLIBS)
|
2002-01-29 15:33:11 +08:00
|
|
|
|
2006-01-07 01:46:52 +08:00
|
|
|
ldeversion.c: Makefile
|
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapexop > $@
|
|
|
|
|
|
|
|
ldeversion.o: ldapexop.o common.o $(XLIBS)
|
|
|
|
|
2008-10-20 04:35:18 +08:00
|
|
|
lduversion.c: Makefile
|
|
|
|
@-$(RM) $@
|
|
|
|
$(MKVERSION) $(MKVOPTS) ldapurl > $@
|
|
|
|
|
|
|
|
lduversion.o: ldapurl.o $(XLIBS)
|
|
|
|
|
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 \
|
2020-07-29 05:06:08 +08:00
|
|
|
$(LTINSTALL) $(INSTALLFLAGS) $(STRIP_OPTS) -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)
|
2005-01-12 10:46:34 +08:00
|
|
|
$(LN_S) $(DESTDIR)$(bindir)/ldapmodify$(EXEEXT) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
|
1999-10-28 15:31:59 +08:00
|
|
|
|