tools/ctdb: Pass memory context for returning nodes in parse_nodestring
[Samba/wip.git] / ctdb / libctdb / test / Makefile
blobe5aa09b37d980e2b06000f9cd144f88def760915
1 CFLAGS=-Wall -g -I../../include/ -I../../lib/talloc/ -I../../lib/tdb/include/ -I../../lib/util/
2 LDLIBS=-lreadline
4 USAGE_SOURCES := $(shell grep -l 'XML Argument' *.c)
5 HELP_SOURCES := $(shell grep -l 'XML Help' *.c)
7 ctdb-test: $(patsubst %.c,%.o,$(wildcard *.c)) generated-usage.o ../../talloc.o ../../common/check.o ../../common/error.o ../../common/freelist.o ../../common/io.o ../../common/lock.o ../../common/open.o ../../common/tdb.o ../../common/transaction.o ../../common/traverse.o
9 $(patsubst %.c,%.o,$(wildcard *.c)): .help-files
11 .PHONY: links
12 links:
13 cd tools && ./create-links
15 generated-usage.o: generated-usage.c links .help-files
16 generated-usage.c: $(USAGE_SOURCES) tools/gen-usage links
17 tools/gen-usage $(USAGE_SOURCES) >$@
19 .help-files: $(HELP_SOURCES) links
20 set -e; for f in $(HELP_SOURCES); do tools/gen-help $$f; done; touch .help-files
22 clean:
23 rm -f ctdb-test .help-files generated-* *.o