2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2013/08/22 00:16:54 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
REQUIRETOOLS= yes
|
|
|
|
NOPIC= # defined
|
|
|
|
NOPROFILE= # defined
|
|
|
|
NOLINT= # defined
|
|
|
|
|
|
|
|
LIB= gcov
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2013-12-06 12:04:52 +01:00
|
|
|
.include <bsd.init.mk>
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.if ${MKGCC} != "no"
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.include "${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH}/defs.mk"
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
LIBGCOVSRCS= ${G_LIBGCOV:=.c}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH}
|
2012-06-06 15:06:52 +02:00
|
|
|
CPPFLAGS+= -Wno-stack-protector
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
DPSRCS+= ${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH}/defs.mk
|
2012-06-06 15:06:52 +02:00
|
|
|
SRCS+= ${LIBGCOVSRCS}
|
|
|
|
|
|
|
|
CLEANFILES+= ${LIBGCOVSRCS}
|
|
|
|
|
|
|
|
${LIBGCOVSRCS}: ${.CURDIR}/Makefile
|
|
|
|
${_MKTARGET_CREATE}
|
|
|
|
printf '#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
.if defined(__MINIX)
|
|
|
|
NOCLANGERROR= yes
|
|
|
|
NOGCCERROR= yes
|
|
|
|
.endif # defined(__MINIX)
|
|
|
|
|
2012-06-06 15:06:52 +02:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.else
|
|
|
|
.include <bsd.prog.mk> # do nothing
|
|
|
|
.endif
|