X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2FMakefile;h=6e4833a3b8a23d0eef9912ff00e93192f58bd992;hp=d2c18aa15356dbb765588e15268e9350856f8226;hb=bae7806a52a48037925e3790d3a4336bc51e7d0f;hpb=e73b0b37186b158369dc70652edae6706cba8133 diff --git a/tools/Makefile b/tools/Makefile index d2c18aa1..6e4833a3 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,10 +1,37 @@ -ALL_TOOLS = tools/configurator/configurator tools/ccan_depends tools/doc_extract tools/namespacize tools/ccanlint/ccanlint - -DEP_OBJS = tools/depends.o tools/compile.o tools/tools.o ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o ccan/talloc/talloc.o ccan/noerr/noerr.o ccan/read_write_all/read_write_all.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 .PHONY: tools tools: $(ALL_TOOLS) +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) @@ -15,7 +42,9 @@ 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) $(ALL_TOOLS) + rm -f $(ALL_TOOLS) include tools/ccanlint/Makefile