Home | History | Annotate | Line # | Download | only in cpp
      1  1.11    plunky #	$NetBSD: Makefile,v 1.11 2016/02/09 20:40:45 plunky Exp $
      2   1.1  gmcgarry 
      3   1.4    plunky .include <bsd.init.mk>
      4   1.1  gmcgarry 
      5  1.10    plunky .PATH:	${PCC_DIST}/cc/cpp
      6   1.1  gmcgarry 
      7   1.7    plunky #
      8   1.7    plunky # We build cpp(1) as pcpp(1) to avoid confusion with GCC
      9   1.7    plunky #
     10   1.7    plunky 
     11   1.7    plunky PROG=	pcpp
     12   1.1  gmcgarry 
     13  1.11    plunky SRCS+=	cpc.c cpp.c token.c
     14   1.1  gmcgarry 
     15   1.5    plunky MAN=	pcpp.1
     16   1.5    plunky 
     17   1.5    plunky pcpp.1:	cpp.1
     18   1.7    plunky 	${TOOL_SED} -e "s,Nm cpp,Nm pcpp,"	\
     19   1.7    plunky 		    -e "s,Dt CPP,Dt PCPP,"	\
     20   1.7    plunky 		    ${.ALLSRC} > ${.TARGET}
     21   1.1  gmcgarry 
     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.11    plunky COPTS.cpp.c+=	${${ACTIVE_CC} == "gcc" :? -Wno-error=cast-qual :}
     27   1.4    plunky 
     28  1.10    plunky CLEANFILES+=	pcpp.1
     29   1.1  gmcgarry 
     30   1.1  gmcgarry .include <bsd.prog.mk>
     31