1 1.6 plunky # $NetBSD: Makefile,v 1.6 2010/02/05 08:37:48 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.1 gmcgarry PROG= cpp 11 1.1 gmcgarry 12 1.4 plunky SRCS= cpy.y 13 1.4 plunky SRCS+= cpp.c token.c 14 1.1 gmcgarry 15 1.5 plunky # avoid conflicts with the GCC cpp.1 page 16 1.5 plunky MAN= pcpp.1 17 1.5 plunky 18 1.5 plunky pcpp.1: cpp.1 19 1.5 plunky cp ${.ALLSRC} ${.TARGET} 20 1.1 gmcgarry 21 1.4 plunky CPPFLAGS+= -DCPP_DEBUG 22 1.1 gmcgarry CPPFLAGS+= -I${.OBJDIR} 23 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/mip 24 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/cc/cpp 25 1.4 plunky 26 1.4 plunky # generate cpy.h 27 1.4 plunky YHEADER= 28 1.4 plunky 29 1.4 plunky # some files include y.tab.h instead 30 1.4 plunky DPSRCS= y.tab.h 31 1.1 gmcgarry 32 1.4 plunky y.tab.h: cpy.h 33 1.4 plunky ${HOST_LN} -f ${.ALLSRC} ${.TARGET} 34 1.1 gmcgarry 35 1.5 plunky CLEANFILES+= pcpp.1 y.tab.h 36 1.1 gmcgarry 37 1.1 gmcgarry .include <bsd.prog.mk> 38