2019-01-27 08:12:30 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2019/01/27 05:12:30 kre Exp $
|
2018-07-13 10:56:29 +03:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/arch
|
2008-01-02 00:33:26 +03:00
|
|
|
|
|
|
|
PROG= tprof
|
2011-11-26 09:02:44 +04:00
|
|
|
MAN= tprof.8
|
2018-07-13 14:03:36 +03:00
|
|
|
SRCS= tprof.c tprof_analyze.c
|
2018-07-13 10:56:29 +03:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
|
|
SRCS+= tprof_x86.c
|
2018-07-16 02:50:53 +03:00
|
|
|
.elif !empty(MACHINE_ARCH:M*armv7*)
|
|
|
|
SRCS+= tprof_armv7.c
|
2018-07-15 19:25:31 +03:00
|
|
|
.elif ${MACHINE_ARCH} == "aarch64"
|
|
|
|
SRCS+= tprof_armv8.c
|
2018-07-13 10:56:29 +03:00
|
|
|
.else
|
|
|
|
SRCS+= tprof_noarch.c
|
|
|
|
.endif
|
2008-01-02 00:33:26 +03:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/
|
|
|
|
|
|
|
|
LDADD+= -lpthread
|
2018-07-13 14:03:36 +03:00
|
|
|
LDADD+= -lelf
|
|
|
|
LDADD+= -lutil
|
2008-01-02 00:33:26 +03:00
|
|
|
DPADD+= ${LIBPTHREAD}
|
2018-07-13 14:03:36 +03:00
|
|
|
DPADD+= ${LIBELF}
|
|
|
|
DPADD+= ${LIBUTIL}
|
2008-01-02 00:33:26 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.prog.mk>
|