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