summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gprof/Makefile
blob: 4829ed5feee1686382a217d4c53249fe39fee51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#	$NetBSD: Makefile,v 1.2 1997/12/18 19:32:46 thorpej Exp $

# Override this to build a cross profiler.
TARGET_ARCH?=${MACHINE_ARCH}

TOP=	${.CURDIR}/../..
dist=	${TOP}/dist
srcdir=	${dist}/gprof

PROG=	gprof
SRCS=	${TARGET_ARCH}.c basic_blocks.c call_graph.c \
	cg_arcs.c cg_dfn.c cg_print.c core.c \
	gmon_io.c gprof.c hertz.c hist.c source.c search_list.c symtab.c \
	sym_ids.c utils.c

SRCS+=	flat_bl.c bsd_callg_bl.c fsf_callg_bl.c

.PATH:	${srcdir}

CPPFLAGS+=-I${srcdir} -I${TOP}/lib/bfd -I${dist}/bfd -I${dist}/include
CPPFLAGS+=-DBSD44_FORMAT=1 -DTARGET_${TARGET_ARCH}
CPPFLAGS+=-DMACHINE_H=\"${TARGET_ARCH}.h\"

DPADD=	${LIBBFD}
LDADD=	-lbfd

.include <bsd.prog.mk>