X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2FMakefile;h=d13cc8a5f8b3e91d2cf8f3c1917d2097386b2aee;hp=cd507e5d08d8237ba06b0c138a85c39dd39d25c4;hb=f22b5b1231f1e34c04cc5242feb152693f64b46e;hpb=8f61c0bccb152b2365baf70deac1e59264d7feb7 diff --git a/tools/ccanlint/Makefile b/tools/ccanlint/Makefile index cd507e5d..d13cc8a5 100644 --- a/tools/ccanlint/Makefile +++ b/tools/ccanlint/Makefile @@ -1,23 +1,46 @@ -TEST_CFILES := $(wildcard tools/ccanlint/compulsory_tests/*.c) \ - $(wildcard tools/ccanlint/tests/*.c) +TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c) TEST_OBJS := $(TEST_CFILES:.c=.o) -CORE_OBJS := tools/ccanlint/ccanlint.o \ +CORE_OBJS := \ + ccan/asort/asort.o \ + ccan/autodata/autodata.o \ + ccan/dgraph/dgraph.o \ + ccan/foreach/foreach.o \ + ccan/grab_file/grab_file.o \ + ccan/hash/hash.o \ + ccan/htable/htable.o \ + ccan/ilog/ilog.o \ + ccan/lbalance/lbalance.o \ + ccan/noerr/noerr.o \ + ccan/opt/helpers.o \ + ccan/opt/opt.o \ + ccan/opt/parse.o \ + ccan/opt/usage.o \ + ccan/ptr_valid/ptr_valid.o \ + ccan/read_write_all/read_write_all.o \ + ccan/str/str.o ccan/str/debug.o \ + ccan/str_talloc/str_talloc.o \ + ccan/strmap/strmap.o \ + ccan/talloc/talloc.o \ + ccan/talloc_link/talloc_link.o \ + ccan/time/time.o \ + tools/ccanlint/async.o \ + tools/ccanlint/ccanlint.o \ tools/ccanlint/file_analysis.o \ + tools/ccanlint/licenses.o \ + tools/ccan_dir.o \ + tools/compile.o \ + tools/depends.o \ tools/doc_extract-core.o \ - ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o \ - ccan/talloc/talloc.o ccan/noerr/noerr.o + tools/manifest.o \ + tools/read_config_header.o \ + tools/tools.o OBJS := $(CORE_OBJS) $(TEST_OBJS) -tools/ccanlint/generated-init-tests: $(OBJS) - cat $(OBJS:.o=.c) | sed -n 's/^struct ccanlint \([A-Za-z0-9_]*\) = {/{ extern struct ccanlint \1; list_add(\&tests, \&\1.list); }/p' >$@ - -tools/ccanlint/ccanlint.o: tools/ccanlint/generated-init-tests +$(CORE_OBJS): config.h tools/ccanlint/ccanlint: $(OBJS) ccanlint-clean: - $(RM) tools/ccanlint/generated-init-tests $(RM) tools/ccanlint/ccanlint -