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