Home | History | Annotate | Line # | Download | only in gmon
Makefile.inc revision 1.13
      1  1.13      mrg #	$NetBSD: Makefile.inc,v 1.13 2018/02/05 22:12:37 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.13      mrg .if (${MACHINE_CPU} == "i386" || ${MACHINE_CPU} == "x86_64") && \
     22  1.13      mrg     ${HAVE_GCC:U0} >= 6
     23  1.12      mrg # The usage of __builtin_frame_address(1) should be OK.
     24  1.12      mrg COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wno-error=frame-address :}
     25  1.12      mrg .endif
     26  1.12      mrg 
     27   1.8    lukem 
     28   1.7  thorpej # mcount and gmon cannot be compiled with profiling
     29   1.1      cgd mcount.po: mcount.o
     30   1.1      cgd 	cp mcount.o mcount.po
     31   1.7  thorpej 
     32   1.7  thorpej gmon.po: gmon.o
     33   1.7  thorpej 	cp gmon.o gmon.po
     34