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