Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. OBJS := ccan_tools/ccanlint/no_info.o \
  2. ccan_tools/ccanlint/has_main_header.o \
  3. ccan_tools/ccanlint/has_tests.o \
  4. ccan_tools/ccanlint/trailing_whitespace.o \
  5. ccan_tools/ccanlint/idempotent.o \
  6. FUTURE:=ccan_tools/ccanlint/if_have_not_ifdef.o \
  7. ccan_tools/ccanlint/needs_depends.o \
  8. ccan_tools/ccanlint/has_info_documentation.o \
  9. ccan_tools/ccanlint/has_header_documentation.o \
  10. ccan_tools/ccanlint/has_tests.o \
  11. ccan_tools/ccanlint/builds_ok.o \
  12. ccan_tools/ccanlint/builds_ok_all_have_variants.o \
  13. ccan_tools/ccanlint/run_tests.o \
  14. ccan_tools/ccanlint/test_coverage.o \
  15. ccan_tools/ccanlint/generated-init-tests: $(OBJS)
  16. cat $(OBJS:.o=.c) | sed -n 's/^struct ccanlint \([A-Za-z0-9_]*\) = {/{ extern struct ccanlint \1; list_add(\&tests, \&\1.list); }/p' >$@
  17. ccan_tools/ccanlint/ccanlint.o: ccan_tools/ccanlint/generated-init-tests
  18. ccan_tools/ccanlint/ccanlint: \
  19. $(OBJS) \
  20. ccan_tools/ccanlint/ccanlint.o \
  21. ccan_tools/ccanlint/get_file_lines.o \
  22. ccan_tools/ccanlint/file_analysis.o \
  23. talloc/talloc.o noerr/noerr.o
  24. ccanlint-clean:
  25. $(RM) ccan_tools/ccanlint/generated-init-tests