summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/Makefile12
-rw-r--r--usr.bin/gprof/gprof.h4
2 files changed, 5 insertions, 11 deletions
diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile
index 62c1a44f749..bc6ca9a940c 100644
--- a/usr.bin/gprof/Makefile
+++ b/usr.bin/gprof/Makefile
@@ -1,13 +1,13 @@
-# $OpenBSD: Makefile,v 1.16 2007/12/05 09:59:38 deraadt Exp $
+# $OpenBSD: Makefile,v 1.17 2007/12/09 19:51:30 espie Exp $
.include <bsd.own.mk>
TARGET_MACHINE_ARCH?= ${MACHINE_ARCH}
PROG= gprof
-SRCS= gprof.c arcs.c dfn.c lookup.c machine.c hertz.c \
+SRCS= gprof.c arcs.c dfn.c lookup.c ${TARGET_MACHINE_ARCH}.c hertz.c \
printgprof.c printlist.c
-CFLAGS+= -I${.CURDIR} -I.
+CFLAGS+= -I. -DMD_INCLUDE=\"${TARGET_MACHINE_ARCH}.h\"
# XXX - need support for multiple archs.
.if (${ELF_TOOLCHAIN:L} == "yes")
@@ -16,12 +16,6 @@ SRCS+=elf.c
SRCS+=aout.c
.endif
-.if defined(PROG)
-beforedepend:
- ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.h machine.h
- ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.c machine.c
-.endif # defined (PROG)
-
beforeinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h
index 76e03979ceb..ef66991b474 100644
--- a/usr.bin/gprof/gprof.h
+++ b/usr.bin/gprof/gprof.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gprof.h,v 1.12 2006/03/25 19:06:36 espie Exp $ */
+/* $OpenBSD: gprof.h,v 1.13 2007/12/09 19:51:30 espie Exp $ */
/* $NetBSD: gprof.h,v 1.13 1996/04/01 21:54:06 mark Exp $ */
/*
@@ -41,7 +41,7 @@
#include <stdlib.h>
#include <err.h>
-#include "machine.h"
+#include MD_INCLUDE
/*
* booleans