2014-02-17 16:55:07 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2013/08/05 00:08:58 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../common/Makefile.inc"
|
2014-02-17 16:55:07 +01:00
|
|
|
.include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
PROG= gprof
|
|
|
|
SRCS= ${G_gprof_OBJECTS:.o=.c}
|
2014-02-17 16:55:07 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}
|
2012-06-06 15:06:52 +02:00
|
|
|
|
2014-02-17 16:55:07 +01:00
|
|
|
PROGDPLIBS+= bfd ${TOP}/${BFDSUBDIR}/libbfd
|
|
|
|
PROGDPLIBS+= iberty ${TOP}/${BFDSUBDIR}/libiberty
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
TEXINFO= ${G_TEXINFOS}
|
|
|
|
COMMONOBJDIR!= cd ${TOP}/usr.bin/common && ${PRINTOBJDIR}
|
|
|
|
INFOFLAGS= -I${COMMONOBJDIR} -I${DIST}/libiberty
|
|
|
|
|
|
|
|
gprof.info: bfdver.texi
|
|
|
|
|
|
|
|
.PATH: ${COMMONOBJDIR} ${DIST}/gprof
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.include <bsd.info.mk>
|
2014-02-17 16:55:07 +01:00
|
|
|
|
|
|
|
.if !defined(__MINIX)
|
|
|
|
LDADD+= -lintl -lz
|
|
|
|
DPADD+= ${LIBINTL} ${LIBZ}
|
|
|
|
.else
|
|
|
|
LDADD+= -lz
|
|
|
|
DPADD+= ${LIBZ}
|
|
|
|
.endif # !defined(__MINIX)
|