1 1.7 plunky # $NetBSD: Makefile,v 1.7 2010/03/07 16:27:18 plunky Exp $ 2 1.6 plunky 3 1.6 plunky WARNS?= 2 4 1.1 gmcgarry 5 1.4 plunky .include <bsd.init.mk> 6 1.1 gmcgarry 7 1.4 plunky .PATH: ${PCC_DIST}/cc/cpp \ 8 1.4 plunky ${PCC_DIST}/mip 9 1.1 gmcgarry 10 1.7 plunky # 11 1.7 plunky # We build cpp(1) as pcpp(1) to avoid confusion with GCC 12 1.7 plunky # 13 1.7 plunky 14 1.7 plunky PROG= pcpp 15 1.1 gmcgarry 16 1.4 plunky SRCS= cpy.y 17 1.4 plunky SRCS+= cpp.c token.c 18 1.1 gmcgarry 19 1.5 plunky MAN= pcpp.1 20 1.5 plunky 21 1.5 plunky pcpp.1: cpp.1 22 1.7 plunky ${TOOL_SED} -e "s,Nm cpp,Nm pcpp," \ 23 1.7 plunky -e "s,Dt CPP,Dt PCPP," \ 24 1.7 plunky ${.ALLSRC} > ${.TARGET} 25 1.1 gmcgarry 26 1.4 plunky CPPFLAGS+= -DCPP_DEBUG 27 1.1 gmcgarry CPPFLAGS+= -I${.OBJDIR} 28 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/mip 29 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/cc/cpp 30 1.4 plunky 31 1.4 plunky # generate cpy.h 32 1.4 plunky YHEADER= 33 1.4 plunky 34 1.4 plunky # some files include y.tab.h instead 35 1.4 plunky DPSRCS= y.tab.h 36 1.1 gmcgarry 37 1.4 plunky y.tab.h: cpy.h 38 1.4 plunky ${HOST_LN} -f ${.ALLSRC} ${.TARGET} 39 1.1 gmcgarry 40 1.5 plunky CLEANFILES+= pcpp.1 y.tab.h 41 1.1 gmcgarry 42 1.1 gmcgarry .include <bsd.prog.mk> 43