minmea/Makefile

29 lines
700 B
Makefile
Raw Normal View History

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