1*f0aec56bSplunky# $NetBSD: Makefile,v 1.11 2016/02/09 20:40:45 plunky Exp $ 250f2c2b3Sgmcgarry 37d4f77f2Splunky.include <bsd.init.mk> 450f2c2b3Sgmcgarry 5f7901881Splunky.PATH: ${PCC_DIST}/cc/cpp 650f2c2b3Sgmcgarry 7b3fbf28eSplunky# 8b3fbf28eSplunky# We build cpp(1) as pcpp(1) to avoid confusion with GCC 9b3fbf28eSplunky# 10b3fbf28eSplunky 11b3fbf28eSplunkyPROG= pcpp 127d4f77f2Splunky 13*f0aec56bSplunkySRCS+= cpc.c cpp.c token.c 1450f2c2b3Sgmcgarry 15bd99595dSplunkyMAN= pcpp.1 16bd99595dSplunky 17bd99595dSplunkypcpp.1: cpp.1 18b3fbf28eSplunky ${TOOL_SED} -e "s,Nm cpp,Nm pcpp," \ 19b3fbf28eSplunky -e "s,Dt CPP,Dt PCPP," \ 20b3fbf28eSplunky ${.ALLSRC} > ${.TARGET} 2150f2c2b3Sgmcgarry 227d4f77f2SplunkyCPPFLAGS+= -I${.OBJDIR} 237d4f77f2SplunkyCPPFLAGS+= -I${PCC_DIST}/mip 247d4f77f2SplunkyCPPFLAGS+= -I${PCC_DIST}/cc/cpp 2550f2c2b3Sgmcgarry 26*f0aec56bSplunkyCOPTS.cpp.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-error=cast-qual :} 2750f2c2b3Sgmcgarry 28f7901881SplunkyCLEANFILES+= pcpp.1 2950f2c2b3Sgmcgarry 3050f2c2b3Sgmcgarry.include <bsd.prog.mk> 31