Makefile 796 B

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