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