Makefile.inc revision 156613
1#	from @(#)Makefile.inc	8.1 (Berkeley) 6/4/93
2# $FreeBSD: head/lib/libc/gmon/Makefile.inc 156613 2006-03-13 01:15:01Z deischen $
3
4# gmon sources
5.PATH: ${.CURDIR}/gmon
6
7SRCS+=	gmon.c mcount.c
8
9SYM_MAPS+=${.CURDIR}/gmon/Symbol.map
10
11MAN+=	moncontrol.3
12
13MLINKS+=moncontrol.3 monstartup.3
14
15.if ${MACHINE_ARCH} == amd64
16# mcount needs to be compiled with frame pointers and without profiling
17mcount.po: mcount.c
18	${CC} ${CFLAGS} -fno-omit-frame-pointer -c ${.IMPSRC} -o ${.TARGET}
19.else
20# mcount cannot be compiled with profiling
21mcount.po: mcount.o
22	cp mcount.o mcount.po
23.endif
24