minix/external/gpl3/binutils/usr.bin/gprof/Makefile

35 lines
800 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.8 2013/08/05 00:08:58 matt Exp $
.include <bsd.own.mk>
TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
.include "${.CURDIR}/../common/Makefile.inc"
.include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
PROG= gprof
SRCS= ${G_gprof_OBJECTS:.o=.c}
CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}
PROGDPLIBS+= bfd ${TOP}/${BFDSUBDIR}/libbfd
PROGDPLIBS+= iberty ${TOP}/${BFDSUBDIR}/libiberty
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>
.if !defined(__MINIX)
LDADD+= -lintl -lz
DPADD+= ${LIBINTL} ${LIBZ}
.else
LDADD+= -lz
DPADD+= ${LIBZ}
.endif # !defined(__MINIX)