summaryrefslogtreecommitdiff
path: root/usr.bin/gprof/Makefile
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-03 20:49:02 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-03 20:49:02 +0000
commita0067f51183d8b472112a095c7c0d32145ff98b3 (patch)
tree96321fd1bd5ffaea0d4f16723ebb5a9cc4a139e9 /usr.bin/gprof/Makefile
parent7dfb23e53684ac495a4cf9a6a5188a1f91d5885a (diff)
Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
Diffstat (limited to 'usr.bin/gprof/Makefile')
-rw-r--r--usr.bin/gprof/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile
index bc6ca9a940c..7064396d33c 100644
--- a/usr.bin/gprof/Makefile
+++ b/usr.bin/gprof/Makefile
@@ -1,13 +1,14 @@
-# $OpenBSD: Makefile,v 1.17 2007/12/09 19:51:30 espie Exp $
+# $OpenBSD: Makefile,v 1.18 2010/02/03 20:49:01 miod Exp $
.include <bsd.own.mk>
TARGET_MACHINE_ARCH?= ${MACHINE_ARCH}
+TARGET_MACHINE_CPU?= ${MACHINE_CPU}
PROG= gprof
-SRCS= gprof.c arcs.c dfn.c lookup.c ${TARGET_MACHINE_ARCH}.c hertz.c \
+SRCS= gprof.c arcs.c dfn.c lookup.c ${TARGET_MACHINE_CPU}.c hertz.c \
printgprof.c printlist.c
-CFLAGS+= -I. -DMD_INCLUDE=\"${TARGET_MACHINE_ARCH}.h\"
+CFLAGS+= -I. -DMD_INCLUDE=\"${TARGET_MACHINE_CPU}.h\"
# XXX - need support for multiple archs.
.if (${ELF_TOOLCHAIN:L} == "yes")