summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon/Makefile.inc
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
committerjb <jb@FreeBSD.org>1997-05-03 03:50:06 +0000
commita1337bb0aea1f73b56821753ae8b9758996f55e4 (patch)
treee2988fbdcf4bbeae883b2bf6b71034d5bd4369ff /lib/libc/gmon/Makefile.inc
parent8063125723bbc9af61ddfefc3de495d2f827e118 (diff)
downloadFreeBSD-src-a1337bb0aea1f73b56821753ae8b9758996f55e4.zip
FreeBSD-src-a1337bb0aea1f73b56821753ae8b9758996f55e4.tar.gz
Changed all paths to be relative to src/lib instead of src/lib/libc
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.
Diffstat (limited to 'lib/libc/gmon/Makefile.inc')
-rw-r--r--lib/libc/gmon/Makefile.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc
index 57dc293..a264d09 100644
--- a/lib/libc/gmon/Makefile.inc
+++ b/lib/libc/gmon/Makefile.inc
@@ -1,11 +1,16 @@
-# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# from @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
+# $Id$
# gmon sources
-.PATH: ${.CURDIR}/gmon
+.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
OpenPOWER on IntegriCloud