NetBSD Makefile for GNU gprof. Tested on NetBSD/alpha.
This commit is contained in:
parent
cd2fc4079a
commit
031232e9ba
|
@ -0,0 +1,27 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 1997/12/18 19:27:58 thorpej Exp $
|
||||
|
||||
# Override this to built 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: ${.CURDIR}/../../dist/gprof
|
||||
|
||||
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>
|
Loading…
Reference in New Issue