104af9cf28b2a571e16fa86fc52ab3f12c23a97f
[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/str/str.o \
15         ccan/time/time.o \
16         tools/read_config_header.o \
17         tools/ccan_dir.o \
18         tools/compile.o \
19         tools/depends.o \
20         tools/tools.o
21
22 .PHONY: tools
23 tools: $(ALL_TOOLS)
24
25 tools/ccan_depends.o: config.h
26
27 tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
28
29 tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)
30
31 tools/namespacize: tools/namespacize.o $(DEP_OBJS)
32
33 tools/namespacize.o tools/depends.o: tools/tools.h
34
35 tools/configurator/configurator: tools/configurator/configurator.c
36
37 tools-clean: ccanlint-clean
38         $(RM) $(ALL_TOOLS)
39
40 include tools/ccanlint/Makefile