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

Pierangelo Masarati's avatar
Pierangelo Masarati committed
16
SRCS = overlays.c \
Howard Chu's avatar
Howard Chu committed
17
	accesslog.c \
Howard Chu's avatar
Howard Chu committed
18
	auditlog.c \
Howard Chu's avatar
Howard Chu committed
19
	autoca.c \
Howard Chu's avatar
Howard Chu committed
20
	constraint.c \
21
	dds.c \
22
	deref.c \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
23
	dyngroup.c \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
24
	dynlist.c \
Ondřej Kuzník's avatar
Ondřej Kuzník committed
25
	homedir.c \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
26
	memberof.c \
27
	otp.c \
Pierangelo Masarati's avatar
Pierangelo Masarati committed
28
	pcache.c \
29
	collect.c \
Howard Chu's avatar
Howard Chu committed
30
	ppolicy.c \
31
	refint.c \
32
	remoteauth.c \
33
	retcode.c \
34
	rwm.c rwmconf.c rwmdn.c rwmmap.c \
35
	seqmod.c \
Howard Chu's avatar
Howard Chu committed
36
	sssvlv.c \
37
	syncprov.c \
38
	translucent.c \
Howard Chu's avatar
Howard Chu committed
39
40
	unique.c \
	valsort.c
41
42
43
OBJS = statover.o \
	@SLAPD_STATIC_OVERLAYS@ \
	overlays.o
Howard Chu's avatar
Howard Chu committed
44

45
46
47
48
# Add here the objs that are needed by overlays, but do not make it
# into SLAPD_STATIC_OVERLAYS...
OBJDEP=rwm.o rwmconf.o rwmdn.o rwmmap.o

49
LTONLY_MOD = $(LTONLY_mod)
Howard Chu's avatar
Howard Chu committed
50
51
52
53
54
LDAP_INCDIR= ../../../include       
LDAP_LIBDIR= ../../../libraries

MOD_DEFS = -DSLAPD_IMPORT

55
shared_LDAP_LIBS = $(LDAP_LIBLDAP_LA) $(LDAP_LIBLBER_LA)
Howard Chu's avatar
Howard Chu committed
56
57
58
59
60
61
62
63
64
NT_LINK_LIBS = -L.. -lslapd $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)
UNIX_LINK_LIBS = $(@BUILD_LIBS_DYNAMIC@_LDAP_LIBS)

LIBRARY = ../liboverlays.a
PROGRAMS = @SLAPD_DYNAMIC_OVERLAYS@

XINCPATH = -I.. -I$(srcdir)/..
XDEFS = $(MODULES_CPPFLAGS)

65
66
67
68
static:	$(LIBRARY)

dynamic: $(PROGRAMS)

Howard Chu's avatar
Howard Chu committed
69
70
71
accesslog.la : accesslog.lo
	$(LTLINK_MOD) -module -o $@ accesslog.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
72
73
74
auditlog.la : auditlog.lo
	$(LTLINK_MOD) -module -o $@ auditlog.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
75
76
77
autoca.la : autoca.lo
	$(LTLINK_MOD) -module -o $@ autoca.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
78
79
80
constraint.la : constraint.lo
	$(LTLINK_MOD) -module -o $@ constraint.lo version.lo $(LINK_LIBS)

81
82
83
dds.la : dds.lo
	$(LTLINK_MOD) -module -o $@ dds.lo version.lo $(LINK_LIBS)

84
85
86
deref.la : deref.lo
	$(LTLINK_MOD) -module -o $@ deref.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
87
dyngroup.la : dyngroup.lo
Howard Chu's avatar
Howard Chu committed
88
89
	$(LTLINK_MOD) -module -o $@ dyngroup.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
90
dynlist.la : dynlist.lo
Pierangelo Masarati's avatar
Pierangelo Masarati committed
91
92
	$(LTLINK_MOD) -module -o $@ dynlist.lo version.lo $(LINK_LIBS)

Ondřej Kuzník's avatar
Ondřej Kuzník committed
93
94
95
homedir.la : homedir.lo
	$(LTLINK_MOD) -module -o $@ homedir.lo version.lo $(LINK_LIBS)

Pierangelo Masarati's avatar
Pierangelo Masarati committed
96
97
98
memberof.la : memberof.lo
	$(LTLINK_MOD) -module -o $@ memberof.lo version.lo $(LINK_LIBS)

99
100
otp.la : otp.lo
	$(LTLINK_MOD) -module -o $@ otp.lo version.lo $(LINK_LIBS)
Ondřej Kuzník's avatar
Ondřej Kuzník committed
101

Howard Chu's avatar
Howard Chu committed
102
pcache.la : pcache.lo
Howard Chu's avatar
Howard Chu committed
103
104
	$(LTLINK_MOD) -module -o $@ pcache.lo version.lo $(LINK_LIBS)

105
106
107
collect.la : collect.lo
	$(LTLINK_MOD) -module -o $@ collect.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
108
ppolicy.la : ppolicy.lo
109
	$(LTLINK_MOD) -module -o $@ ppolicy.lo version.lo $(LINK_LIBS) $(MODULES_LIBS)
Howard Chu's avatar
Howard Chu committed
110

Howard Chu's avatar
Howard Chu committed
111
refint.la : refint.lo
112
113
	$(LTLINK_MOD) -module -o $@ refint.lo version.lo $(LINK_LIBS)

114
115
116
remoteauth.la : remoteauth.lo
	$(LTLINK_MOD) -module -o $@ remoteauth.lo version.lo $(LINK_LIBS)

117
118
119
retcode.la : retcode.lo
	$(LTLINK_MOD) -module -o $@ retcode.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
120
rwm_x.o: rwm.o rwmconf.o rwmdn.o rwmmap.o
121
	$(LD) -r -o $@ rwm.o rwmconf.o rwmdn.o rwmmap.o
122

Howard Chu's avatar
Howard Chu committed
123
rwm.la : rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo
124
	$(LTLINK_MOD) -module -o $@ rwm.lo rwmconf.lo rwmdn.lo rwmmap.lo version.lo $(LINK_LIBS)
125

126
127
128
seqmod.la : seqmod.lo
	$(LTLINK_MOD) -module -o $@ seqmod.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
129
130
131
sssvlv.la : sssvlv.lo
	$(LTLINK_MOD) -module -o $@ sssvlv.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
132
syncprov.la : syncprov.lo
Howard Chu's avatar
Howard Chu committed
133
134
	$(LTLINK_MOD) -module -o $@ syncprov.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
135
translucent.la : translucent.lo
136
137
	$(LTLINK_MOD) -module -o $@ translucent.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
138
unique.la : unique.lo
139
140
	$(LTLINK_MOD) -module -o $@ unique.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
141
142
143
valsort.la : valsort.lo
	$(LTLINK_MOD) -module -o $@ valsort.lo version.lo $(LINK_LIBS)

Howard Chu's avatar
Howard Chu committed
144
install-local:	$(PROGRAMS)
Howard Chu's avatar
Howard Chu committed
145
146
147
148
	@if test -n "$?" ; then \
		$(MKDIR) $(DESTDIR)$(moduledir); \
		$(LTINSTALL) $(INSTALLFLAGS) -m 755 $? $(DESTDIR)$(moduledir);\
	fi
Howard Chu's avatar
Howard Chu committed
149

Howard Chu's avatar
Howard Chu committed
150
151
152
153
MKDEPFLAG = -l

.SUFFIXES: .c .o .lo

Howard Chu's avatar
Howard Chu committed
154
155
156
.c.lo:
	$(LTCOMPILE_MOD) $<

157
158
statover.o: statover.c $(srcdir)/../slap.h

159
$(LIBRARY): $(OBJS) version.lo
Howard Chu's avatar
Howard Chu committed
160
	$(AR) rs $@ $(OBJS)
Howard Chu's avatar
Howard Chu committed
161

162
# Must fixup depends for non-libtool objects
163
depend-local: depend-common
164
	@if test -n "$(OBJS)"; then \
165
	OBJ2=`echo $(OBJS) $(OBJDEP) | $(SED) -e 's/\.o//g'`; \
166
167
168
169
	SCR=''; for i in $$OBJ2; do SCR="$$SCR -e s/^$$i.lo:/$$i.o:/"; done; \
	mv Makefile Makefile.bak; $(SED) $$SCR Makefile.bak > Makefile && \
	$(RM) Makefile.bak; fi

170
171
172
veryclean-local:
	$(RM) statover.c