254d09960a6242398ebb214bc672881559f72898
[ccan] / tools / Makefile
1 ALL_TOOLS = tools/ccan_depends tools/run_tests tools/doc_extract tools/namespacize tools/create_dep_tar
2
3 .PHONY: tools
4 tools: $(ALL_TOOLS)
5
6 tools/ccan_depends: tools/ccan_depends.o tools/depends.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/talloc/talloc.o ccan/noerr/noerr.o
7
8 tools/run_tests: tools/run_tests.o tools/depends.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/tap/tap.o ccan/noerr/noerr.o ccan/talloc/talloc.o
9
10 tools/doc_extract: tools/doc_extract.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/noerr/noerr.o ccan/talloc/talloc.o
11
12 tools/namespacize: tools/namespacize.o tools/depends.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/noerr/noerr.o ccan/talloc/talloc.o
13
14 tools/create_dep_tar: tools/create_dep_tar.o tools/depends.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/noerr/noerr.o ccan/talloc/talloc.o tools/_infotojson/sqlite3_database.o tools/_infotojson/utils.o
15         $(CC) $(LDFLAGS) -o $@ $^ -lsqlite3
16
17 tools/run_tests.o tools/namespacize.o tools/depends.o: tools/tools.h
18
19 tools-clean: ccanlint-clean
20         rm -f $(ALL_TOOLS)
21
22 include tools/ccanlint/Makefile
23 include tools/_infotojson/Makefile