1*11be35a1SLionel Sambuc# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:42 jmmv Exp $ 2*11be35a1SLionel Sambuc 3*11be35a1SLionel Sambuc#NOLINT= # defined 4*11be35a1SLionel Sambuc 5*11be35a1SLionel Sambuc.include <bsd.own.mk> 6*11be35a1SLionel Sambuc 7*11be35a1SLionel SambucLIB= tester 8*11be35a1SLionel SambucLIBISPRIVATE= yes 9*11be35a1SLionel Sambuc 10*11be35a1SLionel SambucSRCDIR= ${NETBSDSRCDIR}/external/bsd/kyua-testers/dist 11*11be35a1SLionel Sambuc.PATH: ${SRCDIR} 12*11be35a1SLionel Sambuc 13*11be35a1SLionel SambucCPPFLAGS+= -DGDB=\"/usr/bin/gdb\" 14*11be35a1SLionel SambucCPPFLAGS+= -DKYUA_TMPDIR=\"/tmp\" 15*11be35a1SLionel SambucCPPFLAGS+= -I${.CURDIR} # For config.h and defs.h. 16*11be35a1SLionel SambucCPPFLAGS+= -I${SRCDIR} # For non-installed headers. 17*11be35a1SLionel Sambuc 18*11be35a1SLionel SambucCPPFLAGS+= -DHAVE_CONFIG_H 19*11be35a1SLionel Sambuc 20*11be35a1SLionel SambucWARNS?= 3 21*11be35a1SLionel Sambuc 22*11be35a1SLionel SambucSRCS= cli.c 23*11be35a1SLionel SambucSRCS+= env.c 24*11be35a1SLionel SambucSRCS+= error.c 25*11be35a1SLionel SambucSRCS+= fs.c 26*11be35a1SLionel SambucSRCS+= result.c 27*11be35a1SLionel SambucSRCS+= run.c 28*11be35a1SLionel SambucSRCS+= stacktrace.c 29*11be35a1SLionel SambucSRCS+= text.c 30*11be35a1SLionel Sambuc 31*11be35a1SLionel Sambuc.if ${MKSHARE} != "no" 32*11be35a1SLionel SambucFILES+= kyua-testers.pc 33*11be35a1SLionel SambucFILESDIR= /usr/lib/pkgconfig 34*11be35a1SLionel Sambuc 35*11be35a1SLionel Sambucrealall: kyua-testers.pc 36*11be35a1SLionel Sambuckyua-testers.pc: Makefile kyua-testers.pc.in 37*11be35a1SLionel Sambuc ${TOOL_SED} \ 38*11be35a1SLionel Sambuc -e 's,__LIBEXECDIR__,/usr/libexec,g' \ 39*11be35a1SLionel Sambuc -e 's,__VERSION__,0.1,g' \ 40*11be35a1SLionel Sambuc <${SRCDIR}/kyua-testers.pc.in >kyua-testers.pc 41*11be35a1SLionel SambucCLEANFILES+= kyua-testers.pc 42*11be35a1SLionel Sambuc.endif 43*11be35a1SLionel Sambuc 44*11be35a1SLionel Sambuc.include <bsd.files.mk> 45*11be35a1SLionel Sambuc.include <bsd.lib.mk> 46