minix/external/gpl3/gcc/lib/libgcc/libgcov/Makefile

34 lines
649 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 2011/08/15 09:19:21 mrg Exp $
REQUIRETOOLS= yes
NOPIC= # defined
NOPROFILE= # defined
NOLINT= # defined
LIB= gcov
.include <bsd.own.mk>
.if ${MKGCC} != "no"
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
LIBGCOVSRCS= ${G_LIBGCOV:=.c}
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH}
CPPFLAGS+= -Wno-stack-protector
DPSRCS+= ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
SRCS+= ${LIBGCOVSRCS}
CLEANFILES+= ${LIBGCOVSRCS}
${LIBGCOVSRCS}: ${.CURDIR}/Makefile
${_MKTARGET_CREATE}
printf '#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET}
.include <bsd.lib.mk>
.else
.include <bsd.prog.mk> # do nothing
.endif