diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-08 16:46:36 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-05-08 16:46:36 +0000 |
commit | 584e4fed1fb6695c8603287739b1b68ef791f48c (patch) | |
tree | 4fe9f999dfd7e5221b0cb16b978e75faf7a98dee /usr.bin/gprof/Makefile | |
parent | 37392dec62ee72737d0bdef8be7fa39faa75df0b (diff) |
Split out symbol handling into a separate file.
Implement symbol handling for ELF (based on FreeBSD).
Implement dummy support for alpha, hppa, powerpc and sparc64.
Tested during the last 2 months on various archs (never comitted because
other stuff got in the way).
Some fixups to i386 support from mickey@
This lets us switch all elf archs to this gprof.
Diffstat (limited to 'usr.bin/gprof/Makefile')
-rw-r--r-- | usr.bin/gprof/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index b63d3d77243..04109c0f75c 100644 --- a/usr.bin/gprof/Makefile +++ b/usr.bin/gprof/Makefile @@ -1,17 +1,19 @@ -# $OpenBSD: Makefile,v 1.12 2001/09/10 23:31:34 drahn Exp $ +# $OpenBSD: Makefile,v 1.13 2002/05/08 16:46:35 art Exp $ + +.include <bsd.own.mk> TARGET_MACHINE_ARCH?= ${MACHINE_ARCH} -.if (${TARGET_MACHINE_ARCH} == "alpha") || \ - (${TARGET_MACHINE_ARCH} == "powerpc") || \ - (${TARGET_MACHINE_ARCH} == "sparc64") || \ - (${TARGET_MACHINE_ARCH} == "hppa") -NOPROG= -.else PROG= gprof SRCS= gprof.c arcs.c dfn.c lookup.c machine.c hertz.c \ printgprof.c printlist.c CFLAGS+= -I${.CURDIR} -I. + +# XXX - need support for multiple archs. +.if (${ELF_TOOLCHAIN} == "yes") +SRCS+=elf.c +.else +SRCS+=aout.c .endif .if defined(PROG) |