Makefile.in 3.54 KB
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
# Makefile for LDAP tools
Kurt Zeilenga's avatar
Kurt Zeilenga committed
2
# $OpenLDAP$
Kurt Zeilenga's avatar
Kurt Zeilenga committed
3
4
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
Quanah Gibson-Mount's avatar
Quanah Gibson-Mount committed
5
## Copyright 1998-2020 The OpenLDAP Foundation.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
6
## All rights reserved.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
7
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
8
9
10
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
Kurt Zeilenga's avatar
Kurt Zeilenga committed
11
##
Kurt Zeilenga's avatar
Kurt Zeilenga committed
12
13
14
15
## 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>.

16
SRCS	= ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c \
17
		ldappasswd.c ldapwhoami.c ldapvc.c ldapcompare.c \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
18
		ldapexop.c ldapurl.c common.c
19
OBJS	= ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o \
20
		ldappasswd.o ldapwhoami.o ldapvc.o ldapcompare.o \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
21
		ldapexop.o ldapurl.o common.o
Kurt Zeilenga's avatar
Kurt Zeilenga committed
22

Kurt Zeilenga's avatar
Kurt Zeilenga committed
23
24
25
LDAP_INCDIR= ../../include       
LDAP_LIBDIR= ../../libraries

26
27
MKVOPTS = -s

28
XLIBS =  $(LDAP_L)
29
XXLIBS	= $(SECURITY_LIBS) $(LUTIL_LIBS) $(CLIENT_LIBS)
30

31
32
XSRCS	= ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c \
	ldwversion.c ldvversion.c ldcversion.c ldeversion.c lduversion.c
Kurt Zeilenga's avatar
Kurt Zeilenga committed
33

34
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn \
35
	ldappasswd ldapwhoami ldapvc ldapcompare ldapexop ldapurl
36

Kurt Zeilenga's avatar
Kurt Zeilenga committed
37

Howard Chu's avatar
Howard Chu committed
38
39
ldapsearch:	ldsversion.o
	$(LTLINK) -o $@ ldapsearch.o common.o ldsversion.o $(LIBS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
40

Howard Chu's avatar
Howard Chu committed
41
42
ldapmodify:	ldmversion.o
	$(LTLINK) -o $@ ldapmodify.o common.o ldmversion.o $(LIBS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
43

Howard Chu's avatar
Howard Chu committed
44
45
ldapdelete:	lddversion.o
	$(LTLINK) -o $@ ldapdelete.o common.o lddversion.o $(LIBS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
46

Howard Chu's avatar
Howard Chu committed
47
48
ldapmodrdn:	ldrversion.o
	$(LTLINK) -o $@ ldapmodrdn.o common.o ldrversion.o $(LIBS)
Kurt Zeilenga's avatar
Kurt Zeilenga committed
49

Howard Chu's avatar
Howard Chu committed
50
51
ldappasswd:	ldpversion.o
	$(LTLINK) -o $@ ldappasswd.o common.o ldpversion.o $(LIBS)
52

Howard Chu's avatar
Howard Chu committed
53
54
ldapwhoami:	ldwversion.o
	$(LTLINK) -o $@ ldapwhoami.o common.o ldwversion.o $(LIBS)
55

56
57
58
ldapvc:	ldvversion.o
	$(LTLINK) -o $@ ldapvc.o common.o ldvversion.o $(LIBS)

Howard Chu's avatar
Howard Chu committed
59
60
ldapcompare: ldcversion.o
	$(LTLINK) -o $@ ldapcompare.o common.o ldcversion.o $(LIBS)
61

62
63
64
ldapexop: ldeversion.o
	$(LTLINK) -o $@ ldapexop.o common.o ldeversion.o $(LIBS)

Pierangelo Masarati's avatar
Pierangelo Masarati committed
65
66
67
ldapurl: lduversion.o
	$(LTLINK) -o $@ ldapurl.o lduversion.o $(LIBS)

Howard Chu's avatar
Howard Chu committed
68
ldsversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
69
70
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapsearch > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
71

Howard Chu's avatar
Howard Chu committed
72
73
74
ldsversion.o: ldapsearch.o common.o $(XLIBS)

ldmversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
75
76
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapmodify > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
77

Howard Chu's avatar
Howard Chu committed
78
79
80
ldmversion.o: ldapmodify.o common.o $(XLIBS)

lddversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
81
82
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapdelete > $@
83

Howard Chu's avatar
Howard Chu committed
84
85
86
lddversion.o: ldapdelete.o common.o $(XLIBS)

ldpversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
87
88
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldappasswd > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
89

Howard Chu's avatar
Howard Chu committed
90
91
92
ldpversion.o: ldappasswd.o common.o $(XLIBS)

ldrversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
93
94
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapmodrdn > $@
Kurt Zeilenga's avatar
Kurt Zeilenga committed
95

Howard Chu's avatar
Howard Chu committed
96
97
98
ldrversion.o: ldapmodrdn.o common.o $(XLIBS)

ldwversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
99
100
101
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapwhoami > $@

Howard Chu's avatar
Howard Chu committed
102
103
ldwversion.o: ldapwhoami.o common.o $(XLIBS)

104
105
106
107
108
109
ldvversion.c: Makefile
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapvc > $@

ldvversion.o: ldapvc.o common.o $(XLIBS)

Howard Chu's avatar
Howard Chu committed
110
ldcversion.c: Makefile
Howard Chu's avatar
Howard Chu committed
111
112
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapcompare > $@
113

Howard Chu's avatar
Howard Chu committed
114
ldcversion.o: ldapcompare.o common.o $(XLIBS)
115

116
117
118
119
120
121
ldeversion.c: Makefile
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapexop > $@

ldeversion.o: ldapexop.o common.o $(XLIBS)

Pierangelo Masarati's avatar
Pierangelo Masarati committed
122
123
124
125
126
127
lduversion.c: Makefile
	@-$(RM) $@
	$(MKVERSION) $(MKVOPTS) ldapurl > $@

lduversion.o: ldapurl.o $(XLIBS)

128
install-local:	FORCE
129
	-$(MKDIR) $(DESTDIR)$(bindir)
130
131
	@(								\
	    for prg in $(PROGRAMS); do					\
132
		$(LTINSTALL) $(INSTALLFLAGS) $(STRIP_OPTS) -m 755 $$prg$(EXEEXT)	\
133
134
135
		    $(DESTDIR)$(bindir);				\
	    done							\
	)
136
	$(RM) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
Howard Chu's avatar
Howard Chu committed
137
	$(LN_S) $(DESTDIR)$(bindir)/ldapmodify$(EXEEXT) $(DESTDIR)$(bindir)/ldapadd$(EXEEXT)
138