Annotation of src/usr.bin/gprof/Makefile, Revision 1.17
1.17 ! espie 1: # $OpenBSD: Makefile,v 1.16 2007/12/05 09:59:38 deraadt Exp $
1.13 art 2:
3: .include <bsd.own.mk>
1.1 deraadt 4:
1.9 miod 5: TARGET_MACHINE_ARCH?= ${MACHINE_ARCH}
6:
1.1 deraadt 7: PROG= gprof
1.17 ! espie 8: SRCS= gprof.c arcs.c dfn.c lookup.c ${TARGET_MACHINE_ARCH}.c hertz.c \
1.1 deraadt 9: printgprof.c printlist.c
1.17 ! espie 10: CFLAGS+= -I. -DMD_INCLUDE=\"${TARGET_MACHINE_ARCH}.h\"
1.13 art 11:
12: # XXX - need support for multiple archs.
1.14 brad 13: .if (${ELF_TOOLCHAIN:L} == "yes")
1.13 art 14: SRCS+=elf.c
15: .else
16: SRCS+=aout.c
1.3 deraadt 17: .endif
1.1 deraadt 18:
19: beforeinstall:
1.5 millert 20: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
1.1 deraadt 21: ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
22: ${DESTDIR}/usr/share/misc
23:
24: .if make(install)
25: SUBDIR+= PSD.doc
26: .endif
27:
28: .include <bsd.prog.mk>