Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Sun, Feb 2, 10:58

Makefile

CC=gcc
LD=${CC}
COVFLAGS = -fprofile-arcs -ftest-coverage
#CFLAGS+=-Wall -Werror -pedantic -O3 -fopenmp -fPIC ${COVFLAGS} -Wfatal-errors -g -Werror=unused-but-set-variable
CFLAGS+=-Wall -pedantic -O3 -fopenmp -fPIC ${COVFLAGS} -g -pg
LDFLAGS+=-lm -fopenmp ${COVFLAGS} -g -pg
OBJS=blas.o cg.o cg_blas.o mmio.o util.o
all: conjugategradient
conjugategradient: $(OBJS)
$(LD) $(OBJS) $(LDFLAGS) -o $@
#coverage study
coverage:
./conjugategradient matrix3x3.mtx vector3.mtx
gcov *.c
lcov --capture --directory . --output-file coverage.info
genhtml coverage.info --output-directory out_html
clean:
rm -Rf conjugategradient *.o *~ *.gcda *.gcov *.gcno out_html coverage.info gmon.out

Event Timeline