1*0a6a1f1dSLionel Sambuc# $NetBSD: Makefile,v 1.8 2014/06/01 19:51:01 mrg Exp $ 218a5822eSThomas Veerman 318a5822eSThomas VeermanREQUIRETOOLS= yes 418a5822eSThomas VeermanNOPIC= # defined 518a5822eSThomas VeermanNOPROFILE= # defined 618a5822eSThomas VeermanNOLINT= # defined 718a5822eSThomas Veerman 818a5822eSThomas VeermanLIB= gcov 918a5822eSThomas Veerman 10*0a6a1f1dSLionel Sambuc.include "../../../Makefile.gcc_path" 1118a5822eSThomas Veerman.include <bsd.own.mk> 1284d9c625SLionel Sambuc.include <bsd.init.mk> 1318a5822eSThomas Veerman 1418a5822eSThomas Veerman.if ${MKGCC} != "no" 1518a5822eSThomas Veerman 1684d9c625SLionel Sambuc.include "${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH}/defs.mk" 1718a5822eSThomas Veerman 1818a5822eSThomas VeermanLIBGCOVSRCS= ${G_LIBGCOV:=.c} 1918a5822eSThomas Veerman 2084d9c625SLionel SambucCPPFLAGS+= -I${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH} 2118a5822eSThomas VeermanCPPFLAGS+= -Wno-stack-protector 2218a5822eSThomas Veerman 2384d9c625SLionel SambucDPSRCS+= ${.CURDIR}/arch/${LIBGCC_MACHINE_ARCH}/defs.mk 2418a5822eSThomas VeermanSRCS+= ${LIBGCOVSRCS} 2518a5822eSThomas Veerman 2618a5822eSThomas VeermanCLEANFILES+= ${LIBGCOVSRCS} 2718a5822eSThomas Veerman 2818a5822eSThomas Veerman${LIBGCOVSRCS}: ${.CURDIR}/Makefile 2918a5822eSThomas Veerman ${_MKTARGET_CREATE} 3018a5822eSThomas Veerman printf '#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET} 3118a5822eSThomas Veerman 3218a5822eSThomas Veerman.include <bsd.lib.mk> 3318a5822eSThomas Veerman.else 3418a5822eSThomas Veerman.include <bsd.prog.mk> # do nothing 3518a5822eSThomas Veerman.endif 36