1 1.5 plunky # $NetBSD: Makefile,v 1.5 2010/02/03 22:03:56 plunky Exp $ 2 1.1 gmcgarry 3 1.4 plunky .include <bsd.init.mk> 4 1.1 gmcgarry 5 1.4 plunky .PATH: ${PCC_DIST}/cc/cpp \ 6 1.4 plunky ${PCC_DIST}/mip 7 1.1 gmcgarry 8 1.1 gmcgarry PROG= cpp 9 1.1 gmcgarry 10 1.4 plunky SRCS= cpy.y 11 1.4 plunky SRCS+= cpp.c token.c 12 1.1 gmcgarry 13 1.5 plunky # avoid conflicts with the GCC cpp.1 page 14 1.5 plunky MAN= pcpp.1 15 1.5 plunky 16 1.5 plunky pcpp.1: cpp.1 17 1.5 plunky cp ${.ALLSRC} ${.TARGET} 18 1.1 gmcgarry 19 1.4 plunky CPPFLAGS+= -DCPP_DEBUG 20 1.1 gmcgarry CPPFLAGS+= -I${.OBJDIR} 21 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/mip 22 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/cc/cpp 23 1.4 plunky 24 1.4 plunky # generate cpy.h 25 1.4 plunky YHEADER= 26 1.4 plunky 27 1.4 plunky # some files include y.tab.h instead 28 1.4 plunky DPSRCS= y.tab.h 29 1.1 gmcgarry 30 1.4 plunky y.tab.h: cpy.h 31 1.4 plunky ${HOST_LN} -f ${.ALLSRC} ${.TARGET} 32 1.1 gmcgarry 33 1.5 plunky CLEANFILES+= pcpp.1 y.tab.h 34 1.1 gmcgarry 35 1.1 gmcgarry .include <bsd.prog.mk> 36