1.include "../Makefile.inc" 2 3LIB= gcov 4WARNS?=1 5 6CFLAGS+= -I. 7CFLAGS+= -I${GCCDIR}/libgcc 8CFLAGS+= -I${.OBJDIR}/../csu 9CFLAGS+= -DIN_LIBGCC2 -DHAVE_CC_TLS -DIN_GCC 10 11# used by shared libs 12INSTALL_PIC_ARCHIVE= yes 13 14# from gcc/Makefile 15LIBGCOV = _gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta \ 16 _gcov_fork _gcov_execl _gcov_execlp _gcov_execle \ 17 _gcov_execv _gcov_execvp _gcov_execve \ 18 _gcov_interval_profiler _gcov_pow2_profiler _gcov_one_value_profiler \ 19 _gcov_indirect_call_profiler _gcov_average_profiler _gcov_ior_profiler \ 20 _gcov_merge_ior 21 22SRCS+= ${LIBGCOV:S/$/.c/g} 23CLEANFILES+= ${LIBGCOV:S/$/.c/g} 24 25.for F in ${LIBGCOV} 26${F}.c: 27 echo '#define L${.TARGET:T:R}' > ${.TARGET} 28 echo '#include "libgcov.c"' >> ${.TARGET} 29.endfor 30 31.PATH: ${GCCDIR}/libgcc 32 33.include <bsd.lib.mk> 34