NetBSD/usr.sbin/tprof/Makefile

30 lines
553 B
Makefile
Raw Normal View History

2019-01-27 08:12:30 +03:00
# $NetBSD: Makefile,v 1.9 2019/01/27 05:12:30 kre Exp $
.PATH: ${.CURDIR}/arch
PROG= tprof
2011-11-26 09:02:44 +04:00
MAN= tprof.8
SRCS= tprof.c tprof_analyze.c
.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
.else
SRCS+= tprof_noarch.c
.endif
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/
LDADD+= -lpthread
LDADD+= -lelf
LDADD+= -lutil
DPADD+= ${LIBPTHREAD}
DPADD+= ${LIBELF}
DPADD+= ${LIBUTIL}
.include <bsd.own.mk>
.include <bsd.prog.mk>