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
26 .
else # defined(MKNATIVE_LIBGCC_NEW)
28 .
include "../Makefile.srcs"
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
46 printf
'#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET
}
48 .
endif # !defined(MKNATIVE_LIBGCC_NEW)
52 .
include <bsd.prog.mk
> # do nothing