X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2FMakefile;h=6e4833a3b8a23d0eef9912ff00e93192f58bd992;hp=c92bb54b7631a054da532b8d368a72e0d3bcc662;hb=bae7806a52a48037925e3790d3a4336bc51e7d0f;hpb=437fa285d12183a0f1e7450b3a01cbe5620a3507 diff --git a/tools/Makefile b/tools/Makefile index c92bb54b..6e4833a3 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,10 +1,50 @@ -tools/run_tests: tools/run_tests.o tools/depends.o tools/split.o tools/grab_file.o ccan/tap/tap.o ccan/talloc/talloc.o +ALL_TOOLS = tools/configurator/configurator tools/ccan_depends tools/doc_extract tools/namespacize tools/ccanlint/ccanlint tools/modfiles +LDLIBS = -lrt +DEP_OBJS = ccan/err/err.o \ + ccan/foreach/foreach.o \ + ccan/hash/hash.o \ + ccan/htable/htable.o \ + ccan/list/list.o \ + ccan/noerr/noerr.o \ + ccan/opt/opt.o \ + ccan/opt/helpers.o \ + ccan/opt/parse.o \ + ccan/opt/usage.o \ + ccan/rbuf/rbuf.o \ + ccan/read_write_all/read_write_all.o \ + ccan/str/debug.o \ + ccan/str/str.o \ + ccan/take/take.o \ + ccan/tal/tal.o \ + ccan/tal/grab_file/grab_file.o \ + ccan/tal/link/link.o \ + ccan/tal/path/path.o \ + ccan/tal/str/str.o \ + ccan/time/time.o \ + tools/read_config_header.o \ + tools/ccan_dir.o \ + tools/compile.o \ + tools/depends.o \ + tools/tools.o -tools/doc_extract: tools/doc_extract.c ccan/talloc/talloc.o +.PHONY: tools +tools: $(ALL_TOOLS) -tools/namespacize: tools/namespacize.c tools/split.o tools/grab_file.o tools/depends.o ccan/talloc/talloc.o +tools/ccan_depends.o: config.h + +tools/ccan_depends: tools/ccan_depends.o $(DEP_OBJS) + +tools/doc_extract: tools/doc_extract.o tools/doc_extract-core.o $(DEP_OBJS) + +tools/namespacize: tools/namespacize.o $(DEP_OBJS) + +tools/namespacize.o tools/depends.o: tools/tools.h + +tools/configurator/configurator: tools/configurator/configurator.c + +tools/modfiles: tools/modfiles.o tools/manifest.o $(DEP_OBJS) tools-clean: ccanlint-clean - rm -f run_tests doc_extract namespacize + rm -f $(ALL_TOOLS) include tools/ccanlint/Makefile