]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/Makefile
tools: split out manifest from ccanlint
[ccan] / tools / ccanlint / Makefile
index 3720c9198c482b7c91e981f83b4bba474d8d0fac..463ef89e4c4ef9b61df8d3754e5de3f81f4dd7f1 100644 (file)
@@ -3,7 +3,7 @@ TEST_OBJS := $(TEST_CFILES:.c=.o)
 
 CORE_OBJS := \
        ccan/asort/asort.o \
-       ccan/btree/btree.o \
+       ccan/autodata/autodata.o \
        ccan/dgraph/dgraph.o \
        ccan/foreach/foreach.o \
        ccan/grab_file/grab_file.o \
@@ -15,6 +15,7 @@ CORE_OBJS := \
        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 \
@@ -29,21 +30,14 @@ CORE_OBJS := \
        tools/compile.o \
        tools/depends.o \
        tools/doc_extract-core.o \
+       tools/manifest.o \
        tools/tools.o
 
 OBJS := $(CORE_OBJS) $(TEST_OBJS)
 
-# FIXME: write a trivial C program to do this
-tools/ccanlint/generated-testlist: $(TEST_CFILES)
-       cat $^ | grep ^REGISTER_TEST > $@
-
-$(TEST_OBJS): tools/ccanlint/generated-testlist
-
-# Otherwise, ccanlint.c et al. may fail to build
-$(CORE_OBJS): tools/ccanlint/generated-testlist config.h
+$(CORE_OBJS): config.h
 
 tools/ccanlint/ccanlint: $(OBJS)
 
 ccanlint-clean:
-       $(RM) tools/ccanlint/generated-testlist
        $(RM) tools/ccanlint/ccanlint