]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/Makefile
configurator: HAVE_PROC_SELF_MAPS
[ccan] / tools / ccanlint / Makefile
index dcbd6f9c19b7a8e947984aff9fada5633c4b824a..f079f8da438ce5a3475fedf26f3eedeae5a18365 100644 (file)
@@ -1,32 +1,48 @@
-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)
-
-CORE_OBJS := tools/ccanlint/ccanlint.o \
+TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c)
+TEST_OBJS := $(TEST_CFILES:.c=.o)
+
+CORE_OBJS := \
+       ccan/asort/asort.o \
+       ccan/dgraph/dgraph.o \
+       ccan/foreach/foreach.o \
+       ccan/grab_file/grab_file.o \
+       ccan/hash/hash.o \
+       ccan/htable/htable.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/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/doc_extract-core.o \
+       tools/ccanlint/licenses.o \
+       tools/compile.o \
        tools/depends.o \
-       tools/tools.o \
-       ccan/str_talloc/str_talloc.o ccan/grab_file/grab_file.o \
-       ccan/talloc/talloc.o ccan/noerr/noerr.o
+       tools/doc_extract-core.o \
+       tools/tools.o
 
 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
+$(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
-