Home | History | Annotate | Line # | Download | only in tprof
Makefile revision 1.6
      1 #	$NetBSD: Makefile,v 1.6 2018/07/15 16:25:31 jmcneill Exp $
      2 
      3 .PATH:	${.CURDIR}/arch
      4 
      5 PROG=	tprof
      6 MAN=	tprof.8
      7 SRCS=	tprof.c tprof_analyze.c
      8 
      9 .if	${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
     10 SRCS+=	tprof_x86.c
     11 .elif	${MACHINE_ARCH} == "aarch64"
     12 SRCS+=	tprof_armv8.c
     13 .else
     14 SRCS+=	tprof_noarch.c
     15 .endif
     16 
     17 CPPFLAGS+= -I${NETBSDSRCDIR}/sys/
     18 
     19 LDADD+= -lpthread
     20 LDADD+= -lelf
     21 LDADD+= -lutil
     22 DPADD+= ${LIBPTHREAD}
     23 DPADD+= ${LIBELF}
     24 DPADD+= ${LIBUTIL}
     25 
     26 .include <bsd.own.mk>
     27 .include <bsd.prog.mk>
     28