Return to Makefile CVS log | Up to [local] / src / usr.bin / gprof |
File: [local] / src / usr.bin / gprof / Makefile (download)
Revision 1.15, Sat Nov 24 16:02:04 2007 UTC (16 years, 6 months ago) by espie
write explicit dependencies for make -j. beforedepend creates the file, but make -j tries to find them earlier, and can't. |
# $OpenBSD: Makefile,v 1.15 2007/11/24 16:02:04 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 \ printgprof.c printlist.c CFLAGS+= -I${.CURDIR} -I. # XXX - need support for multiple archs. .if (${ELF_TOOLCHAIN:L} == "yes") SRCS+=elf.c .else 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 machine.c: ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.c machine.c machine.h: ln -sf ${.CURDIR}/${TARGET_MACHINE_ARCH}.h machine.h .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>