X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2FMakefile;h=3720c9198c482b7c91e981f83b4bba474d8d0fac;hp=ee371e054c87bf084eb32e3c290a611fe63492b1;hb=1e755481cb2d7eb439c51e3522a18ec6d3885829;hpb=0ce66a11534211efcddc6f7f1be0ccad38d2258f diff --git a/tools/ccanlint/Makefile b/tools/ccanlint/Makefile index ee371e05..3720c919 100644 --- a/tools/ccanlint/Makefile +++ b/tools/ccanlint/Makefile @@ -1,10 +1,10 @@ -COMPULSORY_TEST_CFILES := $(wildcard tools/ccanlint/compulsory_tests/*.c) -NORMAL_TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c) -TEST_OBJS := $(NORMAL_TEST_CFILES:.c=.o) $(COMPULSORY_TEST_CFILES:.c=.o) +TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c) +TEST_OBJS := $(TEST_CFILES:.c=.o) CORE_OBJS := \ ccan/asort/asort.o \ ccan/btree/btree.o \ + ccan/dgraph/dgraph.o \ ccan/foreach/foreach.o \ ccan/grab_file/grab_file.o \ ccan/hash/hash.o \ @@ -18,6 +18,7 @@ CORE_OBJS := \ 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 \ @@ -33,20 +34,16 @@ CORE_OBJS := \ OBJS := $(CORE_OBJS) $(TEST_OBJS) # FIXME: write a trivial C program to do this -tools/ccanlint/generated-normal-tests: $(NORMAL_TEST_CFILES) - cat $^ | grep ^REGISTER_TEST > $@ -tools/ccanlint/generated-compulsory-tests: $(COMPULSORY_TEST_CFILES) +tools/ccanlint/generated-testlist: $(TEST_CFILES) cat $^ | grep ^REGISTER_TEST > $@ -$(TEST_OBJS): tools/ccanlint/generated-normal-tests tools/ccanlint/generated-compulsory-tests +$(TEST_OBJS): tools/ccanlint/generated-testlist # Otherwise, ccanlint.c et al. may fail to build -$(CORE_OBJS): tools/ccanlint/generated-normal-tests tools/ccanlint/generated-compulsory-tests config.h +$(CORE_OBJS): tools/ccanlint/generated-testlist config.h tools/ccanlint/ccanlint: $(OBJS) ccanlint-clean: - $(RM) tools/ccanlint/generated-compulsory-tests - $(RM) tools/ccanlint/generated-normal-tests + $(RM) tools/ccanlint/generated-testlist $(RM) tools/ccanlint/ccanlint -