Makefile.inc (b320e7fae77f77678f361e20672a16740b7f6d31) Makefile.inc (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
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
9MAN+= moncontrol.3
10
11MLINKS+=moncontrol.3 monstartup.3
12
13.if ${MACHINE_ARCH} == amd64
14# mcount needs to be compiled with frame pointers and without profiling
15mcount.po: mcount.c
16 ${CC} ${CFLAGS} -fno-omit-frame-pointer -c ${.IMPSRC} -o ${.TARGET}
17.else
18# mcount cannot be compiled with profiling
19mcount.po: mcount.o
20 cp mcount.o mcount.po
21.endif
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