Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. TEST_CFILES := $(wildcard tools/ccanlint/tests/*.c)
  2. TEST_OBJS := $(TEST_CFILES:.c=.o)
  3. CORE_OBJS := \
  4. ccan/asort/asort.o \
  5. ccan/autodata/autodata.o \
  6. ccan/dgraph/dgraph.o \
  7. ccan/foreach/foreach.o \
  8. ccan/hash/hash.o \
  9. ccan/htable/htable.o \
  10. ccan/ilog/ilog.o \
  11. ccan/lbalance/lbalance.o \
  12. ccan/list/list.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/rbuf/rbuf.o \
  20. ccan/read_write_all/read_write_all.o \
  21. ccan/str/str.o ccan/str/debug.o \
  22. ccan/strmap/strmap.o \
  23. ccan/take/take.o \
  24. ccan/tal/tal.o \
  25. ccan/tal/link/link.o \
  26. ccan/tal/path/path.o \
  27. ccan/tal/str/str.o \
  28. ccan/time/time.o \
  29. tools/ccanlint/async.o \
  30. tools/ccanlint/ccanlint.o \
  31. tools/ccanlint/file_analysis.o \
  32. tools/ccanlint/licenses.o \
  33. tools/ccan_dir.o \
  34. tools/compile.o \
  35. tools/depends.o \
  36. tools/doc_extract-core.o \
  37. tools/manifest.o \
  38. tools/read_config_header.o \
  39. tools/tools.o
  40. OBJS := $(CORE_OBJS) $(TEST_OBJS)
  41. $(CORE_OBJS): config.h
  42. tools/ccanlint/ccanlint: $(OBJS)
  43. ccanlint-clean:
  44. $(RM) tools/ccanlint/ccanlint