io: io_set_alloc()
[ccan] / tools / Makefile
1 ALL_TOOLS = tools/configurator/configurator tools/ccan_depends tools/doc_extract tools/namespacize tools/ccanlint/ccanlint
2 LDLIBS = -lrt
3 DEP_OBJS = ccan/err/err.o \
4         ccan/foreach/foreach.o \
5         ccan/list/list.o \
6         ccan/noerr/noerr.o \
7         ccan/rbuf/rbuf.o \
8         ccan/read_write_all/read_write_all.o \
9         ccan/str/debug.o \
10         ccan/str/str.o \
11         ccan/take/take.o \
12         ccan/tal/tal.o \
13         ccan/tal/link/link.o \
14         ccan/tal/path/path.o \
15         ccan/tal/str/str.o \
16         ccan/time/time.o \
17         tools/read_config_header.o \
18         tools/ccan_dir.o \
19         tools/compile.o \
20         tools/depends.o \
21         tools/tools.o
22
23 .PHONY: tools
24 tools: $(ALL_TOOLS)
25
26 tools/ccan_depends.o: config.h
27
28 tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
29
30 tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)
31
32 tools/namespacize: tools/namespacize.o $(DEP_OBJS)
33
34 tools/namespacize.o tools/depends.o: tools/tools.h
35
36 tools/configurator/configurator: tools/configurator/configurator.c
37
38 tools-clean: ccanlint-clean
39         $(RM) $(ALL_TOOLS)
40
41 include tools/ccanlint/Makefile