CC=gcc CFLAGS=-Wall -Wextra LDLIBS=-lcheck -lsubunit -lm OBJS=interval test_interval all: test_interval test_interval: $(OBJS:%=%.o) test: test_interval ./test_interval # easy rider: re-use this makefile with different options coverage: $(MAKE) CFLAGS="$(CFLAGS) --coverage" LDFLAGS="--coverage" clean all ./test_interval gcov interval.c doc: doxygen -x Doxyfile doxygen Doxyfile clean: rm -f $(OBJS:%=%.o) test_interval rm -f $(OBJS:%=%.gcno) $(OBJS:%=%.gcda) interval.c.gcov rm -rf html