Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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/grab_file/grab_file.o \
  26. ccan/tal/link/link.o \
  27. ccan/tal/path/path.o \
  28. ccan/tal/str/str.o \
  29. ccan/time/time.o \
  30. tools/ccanlint/async.o \
  31. tools/ccanlint/ccanlint.o \
  32. tools/ccanlint/file_analysis.o \
  33. tools/ccanlint/licenses.o \
  34. tools/ccan_dir.o \
  35. tools/compile.o \
  36. tools/depends.o \
  37. tools/doc_extract-core.o \
  38. tools/manifest.o \
  39. tools/read_config_header.o \
  40. tools/tools.o
  41. OBJS := $(CORE_OBJS) $(TEST_OBJS)
  42. $(CORE_OBJS): config.h
  43. tools/ccanlint/ccanlint: $(OBJS)
  44. ccanlint-clean:
  45. rm -f tools/ccanlint/ccanlint