1997-05-03 03:50:06 +00:00
|
|
|
# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 05:00:24 +00:00
|
|
|
|
|
|
|
# gmon sources
|
2002-11-18 09:50:57 +00:00
|
|
|
.PATH: ${.CURDIR}/gmon
|
1994-05-27 05:00:24 +00:00
|
|
|
|
|
|
|
SRCS+= gmon.c mcount.c
|
1997-05-03 03:50:06 +00:00
|
|
|
|
2001-03-27 17:27:19 +00:00
|
|
|
MAN+= moncontrol.3
|
1997-12-19 21:53:35 +00:00
|
|
|
|
|
|
|
MLINKS+=moncontrol.3 monstartup.3
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2004-05-18 22:49:15 +00:00
|
|
|
.if ${MACHINE_ARCH} == amd64
|
|
|
|
# mcount needs to be compiled with frame pointers and without profiling
|
|
|
|
mcount.po: mcount.c
|
|
|
|
${CC} ${CFLAGS} -fno-omit-frame-pointer -c ${.IMPSRC} -o ${.TARGET}
|
|
|
|
.else
|
1994-05-27 05:00:24 +00:00
|
|
|
# mcount cannot be compiled with profiling
|
|
|
|
mcount.po: mcount.o
|
|
|
|
cp mcount.o mcount.po
|
2004-05-18 22:49:15 +00:00
|
|
|
.endif
|