xref: /minix/lib/libc/gmon/Makefile.inc (revision 0a6a1f1d)
1#	$NetBSD: Makefile.inc,v 1.11 2014/09/17 11:37:28 joerg Exp $
2#	@(#)Makefile.inc	8.1 (Berkeley) 6/4/93
3
4# gmon sources
5.PATH: ${.CURDIR}/gmon ${ARCHDIR}/gmon
6
7.-include "${ARCHDIR}/gmon/Makefile.inc"
8
9SRCS+=	gmon.c mcount.c
10MAN+=	moncontrol.3
11MLINKS+=moncontrol.3 monstartup.3
12
13.if (${MACHINE_CPU} == "mips")
14# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
15# and mcount.c causes warnings from as(1).
16# mcount.c should be fixed and this test removed.
17#
18COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wa,--no-warn :}
19.endif
20
21
22# mcount and gmon cannot be compiled with profiling
23mcount.po: mcount.o
24	cp mcount.o mcount.po
25
26gmon.po: gmon.o
27	cp gmon.o gmon.po
28