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

40 lines
776 B
Makefile
Raw Normal View History

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