870039320f
so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
18 lines
331 B
Makefile
18 lines
331 B
Makefile
# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
|
# $Id$
|
|
|
|
# gmon sources
|
|
.PATH: ${.CURDIR}/../libc/gmon
|
|
|
|
SRCS+= gmon.c mcount.c
|
|
|
|
# Only build man pages with libc.
|
|
.if ${LIB} == "c"
|
|
MAN3+= gmon/moncontrol.3
|
|
MLINKS+= moncontrol.3 monstartup.3
|
|
.endif
|
|
|
|
# mcount cannot be compiled with profiling
|
|
mcount.po: mcount.o
|
|
cp mcount.o mcount.po
|