da2353271b3246c6203db26826a0c8c766ad9a2c
[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/grab_file/grab_file.o \
4         ccan/noerr/noerr.o \
5         ccan/read_write_all/read_write_all.o \
6         ccan/str/debug.o \
7         ccan/str/str.o \
8         ccan/str_talloc/str_talloc.o \
9         ccan/talloc/talloc.o \
10         ccan/time/time.o \
11         tools/read_config_header.o \
12         tools/compile.o \
13         tools/depends.o \
14         tools/tools.o
15
16 .PHONY: tools
17 tools: $(ALL_TOOLS)
18
19 tools/ccan_depends.o: config.h
20
21 tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS)
22
23 tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS)
24
25 tools/namespacize: tools/namespacize.o $(DEP_OBJS)
26
27 tools/namespacize.o tools/depends.o: tools/tools.h
28
29 tools/configurator/configurator: tools/configurator/configurator.c
30
31 tools-clean: ccanlint-clean
32         $(RM) $(ALL_TOOLS)
33
34 include tools/ccanlint/Makefile