xref: /freebsd/lib/libc/gmon/Makefile.inc (revision 6fad3aaf157b3ab3d64b99ca7c14751124c044dd)
1#	from @(#)Makefile.inc	8.1 (Berkeley) 6/4/93
2# $FreeBSD$
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