Makefile 700 B

12345678910111213141516171819202122232425262728
  1. # Copyright © 2014 Kosma Moczek <kosma@cloudyourcar.com>
  2. # This work is free. You can redistribute it and/or modify it under the
  3. # terms of the Do What The Fuck You Want To Public License, Version 2,
  4. # as published by Sam Hocevar. See the COPYING file for more details.
  5. CFLAGS = -g -Wall -Wextra -Werror
  6. LDFLAGS = -lcheck
  7. all: scan-build test example
  8. @echo "+++ All good."""
  9. test: tests
  10. @echo "+++ Running Check test suite..."
  11. ./tests
  12. scan-build: clean
  13. @echo "+++ Running Clang Static Analyzer..."
  14. scan-build $(MAKE) tests
  15. clean:
  16. $(RM) tests *.o
  17. tests: tests.o minmea.o
  18. example: example.o minmea.o
  19. tests.o: tests.c minmea.h
  20. minmea.o: minmea.c minmea.h
  21. .PHONY: all test scan-build clean