[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gmon

File: [cvs.NetBSD.org] / src / lib / libc / gmon / Makefile.inc (download)

Revision 1.14, Sun Jan 6 18:14:10 2019 UTC (2 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, HEAD
Changes since 1.13: +6 -5 lines

use the pico objects if we are making a PIC profiled library.

#	$NetBSD: Makefile.inc,v 1.14 2019/01/06 18:14:10 christos Exp $
#	@(#)Makefile.inc	8.1 (Berkeley) 6/4/93

# gmon sources
.PATH: ${.CURDIR}/gmon ${ARCHDIR}/gmon

.-include "${ARCHDIR}/gmon/Makefile.inc"

SRCS+=	gmon.c mcount.c
MAN+=	moncontrol.3
MLINKS+=moncontrol.3 monstartup.3

.if (${MACHINE_CPU} == "mips")
# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
# and mcount.c causes warnings from as(1).
# mcount.c should be fixed and this test removed.
#
COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wa,--no-warn :}
.endif

.if (${MACHINE_CPU} == "i386" || ${MACHINE_CPU} == "x86_64") && \
    ${HAVE_GCC:U0} >= 6
# The usage of __builtin_frame_address(1) should be OK.
COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wno-error=frame-address :}
.endif


# mcount and gmon cannot be compiled with profiling
GMONOBJEXT=${${MKPIC} != "no":?pico:o}
mcount.po: mcount.${GMONOBJEXT}
	cp mcount.${GMONOBJEXT} mcount.po

gmon.po: gmon.${GMONOBJEXT}
	cp gmon.${GMONOBJEXT} gmon.po