e31df75228
The logic wasn't using a filtered version of SRCS -- it was using the unfiltered version. This was causing some hilarity with unnecessary dependencies, like headers and the like in lib/libc/... . Also use .pico with bsd.lib.mk, not .o -- .o doesn't use SHARED_C*FLAGS, which doesn't contain _COV_FLAG, which means that the .gcda's would have relied on objects that didn't build them as a side-effect.
25 lines
578 B
Makefile
25 lines
578 B
Makefile
# $FreeBSD$
|
|
#
|
|
# Snippet for dealing with runtime coverage logic.
|
|
#
|
|
# .gcda files are generated from files that are compiled from source, e.g.,
|
|
# foo.gcda is foo.c or foo.cpp's file. In order for the libraries and programs
|
|
# to be properly instrumented, the .gcda files must be installed to a prefix
|
|
# common to the object files.
|
|
#
|
|
# See gcov(1) for more details.
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
FILESGROUPS?= FILES
|
|
|
|
.if !empty(GCDAS)
|
|
GCDAS:= ${GCDAS:O:u}
|
|
FILESGROUPS+= GCDAS
|
|
CLEANFILES+= ${GCDAS}
|
|
|
|
.for _gcda in ${GCDAS}
|
|
GCDASDIR_${_gcda:T}= ${COVERAGEDIR}${_gcda:H:tA}
|
|
.endfor
|
|
.endif
|