Sync usage with man page.
[netbsd-mini2440.git] / gnu / lib / libgcc4 / libgcov / Makefile
blob79b8578cf4ae20974a7af062746f9cc3602960e1
1 # $NetBSD$
3 REQUIRETOOLS= yes
4 NOPIC= # defined
5 NOPROFILE= # defined
6 NOLINT= # defined
8 LIB= gcov
10 .include <bsd.own.mk>
12 .if ${MKGCC} != "no"
14 .include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
16 LIBGCOVSRCS= ${G_LIBGCOV:=.c}
18 CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH}
19 CPPFLAGS+= -Wno-stack-protector
21 .if !defined(MKNATIVE_LIBGCC_NEW)
23 DPSRCS+= ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
24 SRCS+= ${LIBGCOVSRCS}
26 .else # defined(MKNATIVE_LIBGCC_NEW)
28 .include "../Makefile.srcs"
30 # New style.
31 SRCS= ${SRCS.libgcov.a}
32 TMPLSRCS= ${TMPLSRCS.libgcov.a}
33 TMPLFPSRCS= ${TMPLFPSRCS.libgcov.a}
34 TMPLASMSRCS= ${TMPLASMSRCS.libgcov.a}
36 .include "../Makefile.wrapper"
38 .endif # defined(MKNATIVE_LIBGCC_NEW)
40 .if !defined(MKNATIVE_LIBGCC_NEW)
42 CLEANFILES+= ${LIBGCOVSRCS}
44 ${LIBGCOVSRCS}: ${.CURDIR}/Makefile
45 ${_MKTARGET_CREATE}
46 printf '#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET}
48 .endif # !defined(MKNATIVE_LIBGCC_NEW)
50 .include <bsd.lib.mk>
51 .else
52 .include <bsd.prog.mk> # do nothing
53 .endif