minix/external/gpl3/gcc/lib/libgcc/libgcov/Makefile
Thomas Veerman 18a5822eff Partially import gcc and binutils
They are used as build tools for cross compilation. This import does
not include the full distribution. Rather, it sports a shell script
that will download and patch the distribution when compiled from
/usr/src/tools (yet to be committed). This part of the source tree is
only necessary for cross compilation. It's not used or compiled for
native builds.
2012-06-18 10:54:16 +00:00

33 lines
649 B
Makefile

# $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