Home | History | Annotate | Line # | Download | only in gmon
Makefile.inc revision 1.14.6.1
      1  1.14.6.1      cjep #	$NetBSD: Makefile.inc,v 1.14.6.1 2021/05/31 22:15:07 cjep 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.14.6.1      cjep COPTS.mcount.c+=${${ACTIVE_CC} == "clang":? -Wno-error=frame-address :}
     27      1.12       mrg 
     28       1.8     lukem 
     29       1.7   thorpej # mcount and gmon cannot be compiled with profiling
     30      1.14  christos GMONOBJEXT=${${MKPIC} != "no":?pico:o}
     31      1.14  christos mcount.po: mcount.${GMONOBJEXT}
     32      1.14  christos 	cp mcount.${GMONOBJEXT} mcount.po
     33       1.7   thorpej 
     34      1.14  christos gmon.po: gmon.${GMONOBJEXT}
     35      1.14  christos 	cp gmon.${GMONOBJEXT} gmon.po
     36