[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.9, Wed Mar 21 22:27:36 2001 UTC (23 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.8: +13 -5 lines

New compilation scheme, more cross-compiler friendly, less error-prone.
As a bonus, bring support for mvme88k.
millert@ ok

#	$OpenBSD: Makefile,v 1.9 2001/03/21 22:27:36 miod Exp $

TARGET_MACHINE_ARCH?=	${MACHINE_ARCH}

.if (${TARGET_MACHINE_ARCH} == "alpha") || \
    (${TARGET_MACHINE_ARCH} == "mips") || \
    (${TARGET_MACHINE_ARCH} == "powerpc") || \
    (${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

beforedepend:
	ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.h machine.h
	ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.c machine.c

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>