56fc9f5a6c
bfd.h is a generated file and may end up in the objdir, which might be .../obj, might be .../obj.${MACHINE} (but what about crosscompilers?) etc etc. It seems best to use the one installed in DESTDIR; I hope a DESTDIR setting is required for crosstool builds.
31 lines
726 B
Makefile
31 lines
726 B
Makefile
# $NetBSD: Makefile,v 1.3 1998/10/19 04:15:10 ross 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${TOP}/lib/bfd
|
|
CPPFLAGS+= -I${dist}/bfd
|
|
CPPFLAGS+= -I${dist}/include
|
|
CPPFLAGS+= -I${DESTDIR}/usr/include/bfd
|
|
CPPFLAGS+= -DBSD44_FORMAT=1 -DTARGET_${TARGET_ARCH}
|
|
CPPFLAGS+= -DMACHINE_H=\"${TARGET_ARCH}.h\"
|
|
|
|
DPADD= ${LIBBFD}
|
|
LDADD= -lbfd
|
|
|
|
.include <bsd.prog.mk>
|