swrap: Make sure cmbuf is not NULL.
[Samba.git] / ctdb / Makefile.in
blob0843a9653b8b400cecf4c867010a6e20cc83f373
1 #!gmake
4 CC = @CC@
5 AR = ar
6 ARFLAGS = cru
7 RANLIB = ranlib
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 datarootdir = @datarootdir@
11 includedir = @includedir@
12 docdir = @docdir@
13 libdir = @libdir@
14 bindir = @bindir@
15 sbindir = @sbindir@
16 mandir = @mandir@
17 localstatedir = @localstatedir@
18 logdir = @LOGDIR@
19 sockpath = @SOCKPATH@
20 VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@:@poptdir@:@teventdir@:
21 srcdir = @srcdir@
22 etcdir = @sysconfdir@
23 builddir = @builddir@
24 DESTDIR = /
25 EXTRA_OBJ=@EXTRA_OBJ@
26 XSLTPROC = /usr/bin/xsltproc
27 INSTALLCMD = @INSTALL@
29 POPT_LIBS = @POPT_LIBS@
30 POPT_CFLAGS = @POPT_CFLAGS@
31 POPT_OBJ = @POPT_OBJ@
33 TALLOC_LIBS = @TALLOC_LIBS@
34 TALLOC_CFLAGS = @TALLOC_CFLAGS@
35 TALLOC_OBJ = @TALLOC_OBJ@
37 TEVENT_LIBS = @TEVENT_LIBS@
38 TEVENT_CFLAGS = @TEVENT_CFLAGS@
39 TEVENT_OBJ = @TEVENT_OBJ@
41 TDB_LIBS = @TDB_LIBS@
42 TDB_CFLAGS = @TDB_CFLAGS@
43 TDB_OBJ = @TDB_OBJ@
45 REPLACE_OBJ = @LIBREPLACEOBJ@
47 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
49 PMDA_LIBS = -lpcp -lpcp_pmda
50 PMDA_INSTALL = @CTDB_PMDA_INSTALL@
51 PMDA_DEST_DIR = /var/lib/pcp/pmdas/ctdb
53 WRAPPER=@
54 ifeq ($(V),1)
55 WRAPPER=
56 endif
57 ifeq ($(VERBOSE),1)
58 WRAPPER=
59 endif
61 ifeq ($(CC),gcc)
62 EXTRA_CFLAGS=-Wno-format-zero-length -Wno-deprecated-declarations -fPIC
63 endif
65 CFLAGS=@CPPFLAGS@ -g -I$(srcdir)/include -I$(srcdir)/include/internal \
66 -Iinclude -Ilib -Ilib/util -I$(srcdir) \
67 $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) $(TDB_CFLAGS) -I@libreplacedir@ \
68 -DVARDIR=\"$(localstatedir)\" -DETCDIR=\"$(etcdir)\" \
69 -DCTDB_VARDIR=\"$(localstatedir)/lib/ctdb\" \
70 -DLOGDIR=\"$(logdir)\" -DBINDIR=\"$(bindir)\" \
71 -DSOCKPATH=\"$(sockpath)\" \
72 -DUSE_MMAP=1 @CFLAGS@ $(POPT_CFLAGS) \
73 $(EXTRA_CFLAGS)
75 LDSHFLAGS=-fPIC -shared
76 #LDSHFLAGS=-fPIC -shared -Wl,-Bsymbolic -Wl,-z,relo -Wl,-Bsymbolic-funtions -Wl,--as-needed -Wl,-z,defs
77 SHLD=${CC} ${CFLAGS} ${LDSHFLAGS} -o $@
79 LIB_FLAGS=@LDFLAGS@ -Llib @LIBS@ $(POPT_LIBS) $(TALLOC_LIBS) $(TEVENT_LIBS) $(TDB_LIBS) \
80 @INFINIBAND_LIBS@ @CTDB_PCAP_LDFLAGS@
82 CTDB_VERSION_H = include/ctdb_version.h
84 UTIL_OBJ = lib/util/idtree.o lib/util/db_wrap.o lib/util/strlist.o lib/util/util.o \
85 lib/util/util_time.o lib/util/util_file.o lib/util/fault.o lib/util/substitute.o \
86 lib/util/signal.o
88 CTDB_COMMON_OBJ = common/ctdb_io.o common/ctdb_util.o \
89 common/ctdb_ltdb.o common/ctdb_message.o common/cmdline.o \
90 lib/util/debug.o common/rb_tree.o @CTDB_SYSTEM_OBJ@ common/system_common.o \
91 common/ctdb_logging.o common/ctdb_fork.o
93 CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o
95 CTDB_IB_OBJ = @INFINIBAND_WRAPPER_OBJ@
97 CTDB_EXTERNAL_OBJ = $(POPT_OBJ) $(TALLOC_OBJ) $(TDB_OBJ) \
98 $(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
100 CTDB_CLIENT_OBJ = client/ctdb_client.o \
101 $(CTDB_COMMON_OBJ) $(UTIL_OBJ) $(CTDB_EXTERNAL_OBJ)
103 CTDB_SERVER_OBJ = server/ctdbd.o server/ctdb_daemon.o \
104 server/ctdb_recoverd.o server/ctdb_recover.o server/ctdb_freeze.o \
105 server/ctdb_tunables.o server/ctdb_monitor.o server/ctdb_server.o \
106 server/ctdb_control.o server/ctdb_call.o server/ctdb_ltdb_server.o \
107 server/ctdb_traverse.o server/eventscript.o server/ctdb_takeover.o \
108 server/ctdb_serverids.o server/ctdb_persistent.o \
109 server/ctdb_keepalive.o server/ctdb_logging.o server/ctdb_uptime.o \
110 server/ctdb_vacuum.o server/ctdb_banning.o server/ctdb_statistics.o \
111 server/ctdb_update_record.o server/ctdb_lock.o \
112 $(CTDB_CLIENT_OBJ) $(CTDB_TCP_OBJ) $(CTDB_IB_OBJ)
114 TEST_BINS=tests/bin/ctdb_bench tests/bin/ctdb_fetch tests/bin/ctdb_fetch_one \
115 tests/bin/ctdb_fetch_readonly_once tests/bin/ctdb_fetch_readonly_loop \
116 tests/bin/ctdb_store tests/bin/ctdb_trackingdb_test \
117 tests/bin/ctdb_randrec tests/bin/ctdb_persistent \
118 tests/bin/ctdb_traverse tests/bin/rb_test tests/bin/ctdb_transaction \
119 tests/bin/ctdb_takeover_tests tests/bin/ctdb_update_record \
120 tests/bin/ctdb_update_record_persistent \
121 tests/bin/ctdb_functest tests/bin/ctdb_stubtest \
122 tests/bin/ctdb_porting_tests tests/bin/ctdb_lock_tdb \
123 @INFINIBAND_BINS@
125 BINS = bin/ctdb @CTDB_SCSI_IO@ bin/smnotify bin/ping_pong bin/ltdbtool \
126 bin/ctdb_lock_helper bin/ctdb_event_helper @CTDB_PMDA@
128 SBINS = bin/ctdbd
130 DIRS = lib bin tests/bin
132 .SUFFIXES: .c .o .h
134 all: showflags dirs $(CTDB_VERSION_H) $(CTDB_SERVER_OBJ) $(CTDB_CLIENT_OBJ) $(BINS) $(SBINS) $(TEST_BINS)
136 showflags:
137 @echo 'ctdb will be compiled with flags:'
138 @echo ' CFLAGS = $(CFLAGS)'
139 @echo ' LIBS = $(LIB_FLAGS)'
141 showlayout::
142 @echo "ctdb will be installed into:"
143 @echo " prefix: $(prefix)"
144 @echo " bindir: $(bindir)"
145 @echo " sbindir: $(sbindir)"
146 @echo " libdir: $(libdir)"
147 @echo " vardir: $(localstatedir)"
148 @echo " logdir: $(logdir)"
149 @echo " mandir: $(mandir)"
150 @echo " etcdir: $(etcdir)"
152 .c.o:
153 @echo Compiling $*.c
154 @mkdir -p `dirname $@`
155 $(WRAPPER) $(CC) $(CFLAGS) -c $< -o $@
157 dirs:
158 $(WRAPPER) mkdir -p $(DIRS)
160 $(CTDB_VERSION_H):
161 @echo Generating $@
162 $(WRAPPER) ./packaging/mkversion.sh
164 server/ctdb_daemon.c: $(CTDB_VERSION_H)
165 tools/ctdb.c: $(CTDB_VERSION_H)
167 bin/ctdbd: $(CTDB_SERVER_OBJ)
168 @echo Linking $@
169 $(WRAPPER) $(CC) $(CFLAGS) -o $@ $(CTDB_SERVER_OBJ) $(LIB_FLAGS)
171 bin/scsi_io: $(CTDB_CLIENT_OBJ) utils/scsi_io/scsi_io.o
172 @echo Linking $@
173 $(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/scsi_io/scsi_io.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
175 bin/ctdb: $(CTDB_CLIENT_OBJ) tools/ctdb.o tools/ctdb_vacuum.o
176 @echo Linking $@
177 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tools/ctdb.o tools/ctdb_vacuum.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
179 bin/ltdbtool: tools/ltdbtool.o $(TDB_OBJ)
180 @echo Linking $@
181 $(WRAPPER) $(CC) $(CFLAGS) -o $@ $+ $(TDB_LIBS) $(LIB_FLAGS)
183 bin/ctdb_lock_helper: server/ctdb_lock_helper.o lib/util/util_file.o $(CTDB_EXTERNAL_OBJ)
184 @echo Linking $@
185 $(WRAPPER) $(CC) $(CFLAGS) -o $@ server/ctdb_lock_helper.o lib/util/util_file.o $(CTDB_EXTERNAL_OBJ) $(TDB_LIBS) $(LIB_FLAGS)
187 bin/ctdb_event_helper: server/ctdb_event_helper.o $(REPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
188 @echo Linking $@
189 $(WRAPPER) $(CC) $(CFLAGS) -o $@ server/ctdb_event_helper.o $(REPLACE_OBJ) $(SOCKET_WRAPPER_OBJ) $(LIB_FLAGS)
191 bin/smnotify: utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o utils/smnotify/smnotify.o $(POPT_OBJ)
192 @echo Linking $@
193 $(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/smnotify/smnotify.o utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o $(POPT_OBJ) $(LIB_FLAGS)
195 utils/smnotify/smnotify.o: utils/smnotify/smnotify.c utils/smnotify/smnotify.h
197 utils/smnotify/smnotify.h: utils/smnotify/smnotify.x
198 @echo Generating $@
199 $(WRAPPER) rpcgen -h utils/smnotify/smnotify.x > utils/smnotify/smnotify.h
201 utils/smnotify/gen_xdr.c: utils/smnotify/smnotify.x utils/smnotify/smnotify.h
202 @echo Generating $@
203 $(WRAPPER) rpcgen -c utils/smnotify/smnotify.x | grep -Ev '^[[:space:]]+register int32_t \*buf;' > utils/smnotify/gen_xdr.c
205 utils/smnotify/gen_smnotify.c: utils/smnotify/smnotify.x utils/smnotify/smnotify.h
206 @echo Generating $@
207 $(WRAPPER) rpcgen -l utils/smnotify/smnotify.x > utils/smnotify/gen_smnotify.c
209 bin/ping_pong: utils/ping_pong/ping_pong.o
210 @echo Linking $@
211 $(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/ping_pong/ping_pong.o $(LIB_FLAGS)
213 bin/pmdactdb: $(CTDB_CLIENT_OBJ) utils/pmda/pmda_ctdb.o
214 @echo Linking $@
215 $(WRAPPER) $(CC) $(CFLAGS) -o $@ utils/pmda/pmda_ctdb.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) $(PMDA_LIBS)
217 tests/bin/rb_test: $(CTDB_CLIENT_OBJ) tests/src/rb_test.o
218 @echo Linking $@
219 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/rb_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
221 tests/bin/ctdb_bench: $(CTDB_CLIENT_OBJ) tests/src/ctdb_bench.o
222 @echo Linking $@
223 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_bench.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
225 tests/bin/ctdb_fetch: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch.o
226 @echo Linking $@
227 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
229 tests/bin/ctdb_fetch_one: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_one.o
230 @echo Linking $@
231 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
233 tests/bin/ctdb_fetch_readonly_once: tests/src/ctdb_fetch_readonly_once.o $(CTDB_CLIENT_OBJ)
234 @echo Linking $@
235 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_once.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
237 tests/bin/ctdb_fetch_readonly_loop: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_readonly_loop.o
238 @echo Linking $@
239 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_loop.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
241 tests/bin/ctdb_trackingdb_test: $(CTDB_CLIENT_OBJ) tests/src/ctdb_trackingdb_test.o
242 @echo Linking $@
243 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_trackingdb_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
245 tests/bin/ctdb_update_record: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record.o
246 @echo Linking $@
247 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
249 tests/bin/ctdb_update_record_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record_persistent.o
250 @echo Linking $@
251 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
253 tests/bin/ctdb_store: $(CTDB_CLIENT_OBJ) tests/src/ctdb_store.o
254 @echo Linking $@
255 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_store.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
257 tests/bin/ctdb_traverse: $(CTDB_CLIENT_OBJ) tests/src/ctdb_traverse.o
258 @echo Linking $@
259 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_traverse.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
261 tests/bin/ctdb_randrec: $(CTDB_CLIENT_OBJ) tests/src/ctdb_randrec.o
262 @echo Linking $@
263 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_randrec.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
265 tests/bin/ctdb_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_persistent.o
266 @echo Linking $@
267 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
269 tests/bin/ctdb_porting_tests: $(CTDB_CLIENT_OBJ) tests/src/ctdb_porting_tests.o
270 @echo Linking $@
271 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_porting_tests.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
273 tests/bin/ctdb_transaction: $(CTDB_CLIENT_OBJ) tests/src/ctdb_transaction.o
274 @echo Linking $@
275 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_transaction.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
277 CTDB_SERVER_MOST_OBJ = $(CTDB_SERVER_OBJ:server/ctdbd.o=)
278 CTDBD_TEST_C = $(CTDB_SERVER_MOST_OBJ:.o=.c) tests/src/ctdbd_test.c
280 CTDB_TEST_C = $(CTDB_CLIENT_OBJ:.o=.c) tools/ctdb.c tools/ctdb_vacuum.c tests/src/ctdb_test_stubs.c
282 CTDB_TEST_OBJ = $(TALLOC_OBJ) $(TDB_OBJ) \
283 @CTDB_SYSTEM_OBJ@ $(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
285 tests/src/ctdb_takeover_tests.o: tests/src/ctdb_takeover_tests.c $(CTDBD_TEST_C)
287 tests/bin/ctdb_takeover_tests: $(CTDB_TEST_OBJ) tests/src/ctdb_takeover_tests.o $(CTDB_IB_OBJ)
288 @echo Linking $@
289 $(WRAPPER) $(CC) $(CFLAGS) -o $@ tests/src/ctdb_takeover_tests.o $(CTDB_IB_OBJ) $(CTDB_TEST_OBJ) $(LIB_FLAGS)
291 tests/src/ctdb_functest.o: tests/src/ctdb_functest.c tests/src/ctdb_test.c $(CTDB_TEST_C)
293 tests/bin/ctdb_functest: tests/src/ctdb_functest.o $(CTDB_TEST_OBJ)
294 @echo Linking $@
295 $(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(POPT_OBJ) $(LIB_FLAGS)
297 tests/src/ctdb_test.o: tests/src/ctdb_test.c $(CTDB_TEST_C)
299 tests/bin/ctdb_stubtest: tests/src/ctdb_test.o $(CTDB_TEST_OBJ)
300 @echo Linking $@
301 $(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(POPT_OBJ) $(LIB_FLAGS)
303 tests/bin/ctdb_lock_tdb: tests/src/ctdb_lock_tdb.o $(CTDB_CLIENT_OBJ)
304 @echo Linking $@
305 $(WRAPPER) $(CC) $(CFLAGS) -o $@ $^ $(LIB_FLAGS)
307 tests/bin/ibwrapper_test: $(CTDB_CLIENT_OBJ) ib/ibwrapper_test.o $(CTDB_IB_OBJ)
308 @echo Linking $@
309 $(WRAPPER) $(CC) $(CFLAGS) -o $@ ib/ibwrapper_test.o $(CTDB_CLIENT_OBJ) $(CTDB_IB_OBJ) $(LIB_FLAGS)
311 manpages:
312 $(MAKE) -C doc
314 clean:
315 rm -f *.o */*.o */*.a */*/*.o */*~
316 rm -f utils/smnotify/gen_xdr.c
317 rm -f $(BINS) $(SBINS) $(TEST_BINS)
319 distclean: clean
320 rm -f *~ */*~
321 rm -rf bin
322 rm -f config.log config.status config.cache config.h
323 rm -f Makefile
324 rm -f $(CTDB_VERSION_H)
326 install: all manpages $(PMDA_INSTALL)
327 mkdir -p $(DESTDIR)$(libdir)/pkgconfig
328 mkdir -p $(DESTDIR)$(bindir)
329 mkdir -p $(DESTDIR)$(sbindir)
330 mkdir -p $(DESTDIR)$(includedir)
331 mkdir -p $(DESTDIR)$(etcdir)/ctdb
332 mkdir -p $(DESTDIR)$(etcdir)/ctdb/events.d
333 mkdir -p $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d
334 mkdir -p $(DESTDIR)$(etcdir)/sudoers.d/
335 mkdir -p $(DESTDIR)$(etcdir)/ctdb/notify.d
336 mkdir -p $(DESTDIR)$(localstatedir)/lib/ctdb
337 mkdir -p $(DESTDIR)$(localstatedir)/run/ctdb
338 mkdir -p $(DESTDIR)$(logdir)
339 ${INSTALLCMD} -m 644 ctdb.pc $(DESTDIR)$(libdir)/pkgconfig
340 ${INSTALLCMD} -m 755 bin/ctdb $(DESTDIR)$(bindir)
341 ${INSTALLCMD} -m 755 bin/ctdbd $(DESTDIR)$(sbindir)
342 ${INSTALLCMD} -m 755 bin/smnotify $(DESTDIR)$(bindir)
343 $(INSTALLCMD) -m 755 bin/ping_pong $(DESTDIR)$(bindir)
344 $(INSTALLCMD) -m 755 bin/ltdbtool $(DESTDIR)$(bindir)
345 $(INSTALLCMD) -m 755 bin/ctdb_lock_helper $(DESTDIR)$(bindir)
346 $(INSTALLCMD) -m 755 bin/ctdb_event_helper $(DESTDIR)$(bindir)
347 ${INSTALLCMD} -m 644 include/ctdb.h $(DESTDIR)$(includedir)
348 ${INSTALLCMD} -m 644 include/ctdb_client.h $(DESTDIR)$(includedir)
349 ${INSTALLCMD} -m 644 include/ctdb_protocol.h $(DESTDIR)$(includedir)
350 ${INSTALLCMD} -m 644 include/ctdb_private.h $(DESTDIR)$(includedir) # for samba3
351 ${INSTALLCMD} -m 644 include/ctdb_typesafe_cb.h $(DESTDIR)$(includedir)
352 ${INSTALLCMD} -m 440 config/ctdb.sudoers $(DESTDIR)$(etcdir)/sudoers.d/ctdb
353 ${INSTALLCMD} -m 644 config/functions $(DESTDIR)$(etcdir)/ctdb
354 ${INSTALLCMD} -m 755 config/statd-callout $(DESTDIR)$(etcdir)/ctdb
355 ${INSTALLCMD} -m 755 config/ctdbd_wrapper $(DESTDIR)$(sbindir)
356 ${INSTALLCMD} -m 755 config/events.d/00.ctdb $(DESTDIR)$(etcdir)/ctdb/events.d
357 ${INSTALLCMD} -m 755 config/events.d/01.reclock $(DESTDIR)$(etcdir)/ctdb/events.d
358 ${INSTALLCMD} -m 755 config/events.d/10.interface $(DESTDIR)$(etcdir)/ctdb/events.d
359 ${INSTALLCMD} -m 755 config/events.d/11.natgw $(DESTDIR)$(etcdir)/ctdb/events.d
360 ${INSTALLCMD} -m 755 config/events.d/11.routing $(DESTDIR)$(etcdir)/ctdb/events.d
361 ${INSTALLCMD} -m 755 config/events.d/13.per_ip_routing $(DESTDIR)$(etcdir)/ctdb/events.d
362 ${INSTALLCMD} -m 644 config/events.d/20.multipathd $(DESTDIR)$(etcdir)/ctdb/events.d
363 ${INSTALLCMD} -m 644 config/events.d/31.clamd $(DESTDIR)$(etcdir)/ctdb/events.d
364 ${INSTALLCMD} -m 755 config/events.d/40.vsftpd $(DESTDIR)$(etcdir)/ctdb/events.d
365 ${INSTALLCMD} -m 644 config/events.d/40.fs_use $(DESTDIR)$(etcdir)/ctdb/events.d
366 ${INSTALLCMD} -m 755 config/events.d/41.httpd $(DESTDIR)$(etcdir)/ctdb/events.d
367 ${INSTALLCMD} -m 755 config/events.d/49.winbind $(DESTDIR)$(etcdir)/ctdb/events.d
368 ${INSTALLCMD} -m 755 config/events.d/50.samba $(DESTDIR)$(etcdir)/ctdb/events.d
369 ${INSTALLCMD} -m 755 config/events.d/60.nfs $(DESTDIR)$(etcdir)/ctdb/events.d
370 ${INSTALLCMD} -m 755 config/events.d/60.ganesha $(DESTDIR)$(etcdir)/ctdb/events.d
371 ${INSTALLCMD} -m 755 config/events.d/62.cnfs $(DESTDIR)$(etcdir)/ctdb/events.d
372 ${INSTALLCMD} -m 755 config/events.d/70.iscsi $(DESTDIR)$(etcdir)/ctdb/events.d
373 ${INSTALLCMD} -m 755 config/events.d/91.lvs $(DESTDIR)$(etcdir)/ctdb/events.d
374 ${INSTALLCMD} -m 644 config/events.d/99.timeout $(DESTDIR)$(etcdir)/ctdb/events.d
375 ${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/10.statd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
376 ${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/20.nfsd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
377 ${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/30.lockd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
378 ${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/40.mountd.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
379 ${INSTALLCMD} -m 644 config/nfs-rpc-checks.d/50.rquotad.check $(DESTDIR)$(etcdir)/ctdb/nfs-rpc-checks.d/
380 ${INSTALLCMD} -m 755 tools/ctdb_diagnostics $(DESTDIR)$(bindir)
381 ${INSTALLCMD} -m 755 tools/onnode $(DESTDIR)$(bindir)
382 if [ -f doc/ctdb.1 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man1; fi
383 if [ -f doc/ctdb.1 ];then ${INSTALLCMD} -m 644 doc/ctdb.1 $(DESTDIR)$(mandir)/man1; fi
384 if [ -f doc/ctdbd.1 ];then ${INSTALLCMD} -m 644 doc/ctdbd.1 $(DESTDIR)$(mandir)/man1; fi
385 if [ -f doc/ctdbd_wrapper.1 ];then ${INSTALLCMD} -m 644 doc/ctdbd_wrapper.1 $(DESTDIR)$(mandir)/man1; fi
386 if [ -f doc/onnode.1 ];then ${INSTALLCMD} -m 644 doc/onnode.1 $(DESTDIR)$(mandir)/man1; fi
387 if [ -f doc/ltdbtool.1 ]; then ${INSTALLCMD} -m 644 doc/ltdbtool.1 $(DESTDIR)$(mandir)/man1; fi
388 if [ -f doc/ping_pong.1 ];then ${INSTALLCMD} -m 644 doc/ping_pong.1 $(DESTDIR)$(mandir)/man1; fi
389 if [ -f doc/ctdb.7 ]; then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man7; fi
390 if [ -f doc/ctdb.7 ]; then ${INSTALLCMD} -m 644 doc/ctdb.7 $(DESTDIR)$(mandir)/man7; fi
391 if [ -f doc/ctdb-tunables.7 ]; then ${INSTALLCMD} -m 644 doc/ctdb-tunables.7 $(DESTDIR)$(mandir)/man7; fi
392 if [ -f doc/ctdbd.conf.5 ]; then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man5; fi
393 if [ -f doc/ctdbd.conf.5 ]; then ${INSTALLCMD} -m 644 doc/ctdbd.conf.5 $(DESTDIR)$(mandir)/man5; fi
394 ${INSTALLCMD} -m 755 config/notify.sh $(DESTDIR)$(etcdir)/ctdb
395 ${INSTALLCMD} -m 755 config/debug-hung-script.sh $(DESTDIR)$(etcdir)/ctdb
396 ${INSTALLCMD} -m 755 config/ctdb-crash-cleanup.sh $(DESTDIR)$(etcdir)/ctdb
397 ${INSTALLCMD} -m 755 config/gcore_trace.sh $(DESTDIR)$(etcdir)/ctdb
398 ${INSTALLCMD} -m 755 config/debug_locks.sh $(DESTDIR)$(etcdir)/ctdb
400 install_pmda:
401 $(INSTALLCMD) -m 755 -d $(DESTDIR)$(PMDA_DEST_DIR)
402 $(INSTALLCMD) -m 755 utils/pmda/Install utils/pmda/Remove $(DESTDIR)$(PMDA_DEST_DIR)
403 $(INSTALLCMD) -m 644 utils/pmda/pmns utils/pmda/domain.h utils/pmda/help utils/pmda/README $(DESTDIR)$(PMDA_DEST_DIR)
404 $(INSTALLCMD) -m 755 bin/pmdactdb $(DESTDIR)$(PMDA_DEST_DIR)
406 # Should use $(datarootdir) but older autoconfs don't do this. :-(
407 install_tests: all
408 tests/INSTALL --destdir=$(DESTDIR) --datarootdir=$(prefix)/share --libdir=$(libdir) --bindir=$(bindir) --etcdir=$(etcdir)
410 autotest: all
411 tests/run_tests.sh -e -S -C
413 test: all
414 tests/run_tests.sh -V tests/var
416 test_cluster: all
417 tests/run_cluster_tests.sh
419 valgrindtest: all
420 VALGRIND="valgrind -q --trace-children=yes" tests/run_tests.sh
422 ctags:
423 find . -name "*.[ch]" | xargs ctags
425 etags:
426 find . -name "*.[ch]" | xargs etags
428 realdistclean: distclean
429 rm -f configure config.h.in ctdb.pc