summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-12-09 19:51:31 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-12-09 19:51:31 +0000
commit88b82bf8254a27a2a2546a7718e0e26cc4be8a58 (patch)
tree5888de7557055d8fd9efb548ac09d6b280b29c5e /usr.bin/gprof
parent10ca2c4be8512db63732b9cbeb51501255fadf20 (diff)
remove makefile hacks to build links. Instead, change the files that
gprof uses directly. okay deraadt@, miod@. Thanks for checking that gcc 2.95 is happy with #include MACRO
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