[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / gprof

File: [local] / src / usr.bin / gprof / Makefile (download)

Revision 1.12, Mon Sep 10 23:31:34 2001 UTC (22 years, 8 months ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +3 -1 lines

Do not make symlinks to files for architectures which do not use
this gprof. This wasy sparc64.c does not need to be created.

#	$OpenBSD: Makefile,v 1.12 2001/09/10 23:31:34 drahn Exp $

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.
.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 \
	    ${DESTDIR}/usr/share/misc

.if make(install)
SUBDIR+= PSD.doc
.endif

.include <bsd.prog.mk>