2012-06-06 15:06:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2009/11/10 10:24:50 skrll Exp $
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../common/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
|
|
|
|
|
|
|
|
PROG= gprof
|
|
|
|
SRCS= ${G_gprof_OBJECTS:.o=.c}
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH}
|
|
|
|
|
2013-04-10 18:13:48 +02:00
|
|
|
.if !defined(__MINIX)
|
2012-06-06 15:06:52 +02:00
|
|
|
LDADD= -lintl
|
|
|
|
DPADD= ${LIBINTL}
|
2013-04-10 18:13:48 +02:00
|
|
|
.endif # !defined(__MINIX)
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
BFDOBJ!= cd ${TOP}/${BFDSUBDIR}/libbfd && ${PRINTOBJDIR}
|
|
|
|
LDADD+= -L${BFDOBJ} -lbfd
|
|
|
|
.if ${MKPICLIB} != "no"
|
|
|
|
DPADD+= ${BFDOBJ}/libbfd_pic.a
|
|
|
|
.else
|
|
|
|
DPADD+= ${BFDOBJ}/libbfd.a
|
|
|
|
.endif
|
|
|
|
|
|
|
|
IBERTYOBJ!= cd ${TOP}/${BFDSUBDIR}/libiberty && ${PRINTOBJDIR}
|
|
|
|
LDADD+= -L${IBERTYOBJ} -liberty
|
|
|
|
DPADD+= ${IBERTYOBJ}/libiberty.a
|
|
|
|
|
|
|
|
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>
|