# $NetBSD: Makefile,v 1.6 2018/07/15 16:25:31 jmcneill Exp $ .PATH: ${.CURDIR}/arch PROG= tprof MAN= tprof.8 SRCS= tprof.c tprof_analyze.c .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" SRCS+= tprof_x86.c .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 .include