Makefile 428 B

1234567891011121314151617181920212223
  1. CFLAGS = -g -Wall -Wextra -Werror
  2. LDFLAGS = -lcheck
  3. all: scan-build test example
  4. @echo "+++ All good."""
  5. test: tests
  6. @echo "+++ Running Check test suite..."
  7. ./tests
  8. scan-build: clean
  9. @echo "+++ Running Clang Static Analyzer..."
  10. scan-build $(MAKE) tests
  11. clean:
  12. $(RM) tests *.o
  13. tests: tests.o minmea.o
  14. example: example.o minmea.o
  15. tests.o: tests.c minmea.h
  16. minmea.o: minmea.c minmea.h
  17. .PHONY: all test scan-build clean