aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gmon/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gmon/Makefile.inc')
-rw-r--r--lib/libc/gmon/Makefile.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc
new file mode 100644
index 000000000000..f70dc5692f8e
--- /dev/null
+++ b/lib/libc/gmon/Makefile.inc
@@ -0,0 +1,14 @@
+# gmon sources
+.PATH: ${LIBC_SRCTOP}/gmon
+
+SRCS+= gmon.c mcount.c
+
+SYM_MAPS+=${LIBC_SRCTOP}/gmon/Symbol.map
+
+MAN+= moncontrol.3
+
+MLINKS+=moncontrol.3 monstartup.3
+
+# mcount cannot be compiled with profiling
+mcount.po: mcount.o
+ cp mcount.o mcount.po