1 1.4 plunky # $NetBSD: Makefile,v 1.4 2010/01/20 11:45:55 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.4 plunky MAN= cpp.1 14 1.1 gmcgarry 15 1.4 plunky CPPFLAGS+= -DCPP_DEBUG 16 1.1 gmcgarry CPPFLAGS+= -I${.OBJDIR} 17 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/mip 18 1.4 plunky CPPFLAGS+= -I${PCC_DIST}/cc/cpp 19 1.4 plunky 20 1.4 plunky # generate cpy.h 21 1.4 plunky YHEADER= 22 1.4 plunky 23 1.4 plunky # some files include y.tab.h instead 24 1.4 plunky DPSRCS= y.tab.h 25 1.1 gmcgarry 26 1.4 plunky y.tab.h: cpy.h 27 1.4 plunky ${HOST_LN} -f ${.ALLSRC} ${.TARGET} 28 1.1 gmcgarry 29 1.4 plunky CLEANFILES+= y.tab.h 30 1.1 gmcgarry 31 1.1 gmcgarry .include <bsd.prog.mk> 32