 18a5822eff
			
		
	
	
		18a5822eff
		
	
	
	
	
		
			
			They are used as build tools for cross compilation. This import does not include the full distribution. Rather, it sports a shell script that will download and patch the distribution when compiled from /usr/src/tools (yet to be committed). This part of the source tree is only necessary for cross compilation. It's not used or compiled for native builds.
		
			
				
	
	
		
			34 lines
		
	
	
		
			649 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			649 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #	$NetBSD: Makefile,v 1.2 2011/08/15 09:19:21 mrg Exp $
 | |
| 
 | |
| REQUIRETOOLS=	yes
 | |
| NOPIC=		# defined
 | |
| NOPROFILE=	# defined
 | |
| NOLINT=		# defined
 | |
| 
 | |
| LIB=		gcov
 | |
| 
 | |
| .include <bsd.own.mk>
 | |
| 
 | |
| .if ${MKGCC} != "no"
 | |
| 
 | |
| .include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
 | |
| 
 | |
| LIBGCOVSRCS=	${G_LIBGCOV:=.c}
 | |
| 
 | |
| CPPFLAGS+=	-I${.CURDIR}/arch/${MACHINE_ARCH}
 | |
| CPPFLAGS+=	-Wno-stack-protector
 | |
| 
 | |
| DPSRCS+=	${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
 | |
| SRCS+=		${LIBGCOVSRCS}
 | |
| 
 | |
| CLEANFILES+=	${LIBGCOVSRCS}
 | |
| 
 | |
| ${LIBGCOVSRCS}: ${.CURDIR}/Makefile
 | |
| 	${_MKTARGET_CREATE}
 | |
| 	printf '#define L${.PREFIX}\n#include <libgcov.c>\n' >${.TARGET}
 | |
| 
 | |
| .include <bsd.lib.mk>
 | |
| .else
 | |
| .include <bsd.prog.mk> # do nothing
 | |
| .endif
 |