xref: /openbsd/usr.bin/gprof/Makefile (revision f2dfb0a4)
1#	$OpenBSD: Makefile,v 1.6 1997/09/21 11:49:15 deraadt Exp $
2
3.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "mips")
4NOPROG=
5.else
6PROG=	gprof
7SRCS=	gprof.c arcs.c dfn.c lookup.c ${MACHINE_ARCH}.c hertz.c \
8	printgprof.c printlist.c
9CFLAGS+= -D${MACHINE_ARCH}
10.endif
11
12beforeinstall:
13	${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
14	    ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
15	    ${DESTDIR}/usr/share/misc
16
17.if make(install)
18SUBDIR+= PSD.doc
19.endif
20
21.include <bsd.prog.mk>
22