1 1.12 mrg # $NetBSD: Makefile.inc,v 1.12 2018/02/04 01:13:45 mrg Exp $ 2 1.4 cgd # @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 3 1.1 cgd 4 1.1 cgd # gmon sources 5 1.5 thorpej .PATH: ${.CURDIR}/gmon ${ARCHDIR}/gmon 6 1.5 thorpej 7 1.5 thorpej .-include "${ARCHDIR}/gmon/Makefile.inc" 8 1.1 cgd 9 1.1 cgd SRCS+= gmon.c mcount.c 10 1.3 cgd MAN+= moncontrol.3 11 1.6 briggs MLINKS+=moncontrol.3 monstartup.3 12 1.1 cgd 13 1.10 matt .if (${MACHINE_CPU} == "mips") 14 1.8 lukem # Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0 15 1.8 lukem # and mcount.c causes warnings from as(1). 16 1.8 lukem # mcount.c should be fixed and this test removed. 17 1.8 lukem # 18 1.11 joerg COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wa,--no-warn :} 19 1.8 lukem .endif 20 1.8 lukem 21 1.12 mrg .if (${MACHINE_CPU} == "i386") && ${HAVE_GCC:U0} >= 6 22 1.12 mrg # The usage of __builtin_frame_address(1) should be OK. 23 1.12 mrg COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wno-error=frame-address :} 24 1.12 mrg .endif 25 1.12 mrg 26 1.8 lukem 27 1.7 thorpej # mcount and gmon cannot be compiled with profiling 28 1.1 cgd mcount.po: mcount.o 29 1.1 cgd cp mcount.o mcount.po 30 1.7 thorpej 31 1.7 thorpej gmon.po: gmon.o 32 1.7 thorpej cp gmon.o gmon.po 33