cf450f27fd106a94d872e63b66ffd769409f96cb
[ccan] / tools / ccanlint / Makefile
1 TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c)
2 TEST_OBJS := $(TEST_CFILES:.c=.o)
3
4 CORE_OBJS := \
5         ccan/asort/asort.o \
6         ccan/autodata/autodata.o \
7         ccan/dgraph/dgraph.o \
8         ccan/foreach/foreach.o \
9         ccan/grab_file/grab_file.o \
10         ccan/hash/hash.o \
11         ccan/htable/htable.o \
12         ccan/lbalance/lbalance.o \
13         ccan/noerr/noerr.o \
14         ccan/opt/helpers.o \
15         ccan/opt/opt.o \
16         ccan/opt/parse.o \
17         ccan/opt/usage.o \
18         ccan/ptr_valid/ptr_valid.o \
19         ccan/read_write_all/read_write_all.o \
20         ccan/str/str.o ccan/str/debug.o \
21         ccan/str_talloc/str_talloc.o \
22         ccan/strmap/strmap.o \
23         ccan/talloc/talloc.o \
24         ccan/talloc_link/talloc_link.o \
25         ccan/time/time.o \
26         tools/ccanlint/async.o \
27         tools/ccanlint/ccanlint.o \
28         tools/ccanlint/file_analysis.o \
29         tools/ccanlint/licenses.o \
30         tools/ccan_dir.o \
31         tools/compile.o \
32         tools/depends.o \
33         tools/doc_extract-core.o \
34         tools/manifest.o \
35         tools/tools.o
36
37 OBJS := $(CORE_OBJS) $(TEST_OBJS)
38
39 $(CORE_OBJS): config.h
40
41 tools/ccanlint/ccanlint: $(OBJS)
42
43 ccanlint-clean:
44         $(RM) tools/ccanlint/ccanlint