binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / cpp0 / Makefile
CommitLineData
74fbd2f0 1# $FreeBSD: src/gnu/usr.bin/cc/cpp0/Makefile,v 1.5 2002/05/13 03:27:03 obrien Exp $
17030342 2# $DragonFly: src/gnu/usr.bin/cc3/cpp0/Attic/Makefile,v 1.2 2004/02/02 05:43:12 dillon Exp $
74fbd2f0
DR
3
4.include "../Makefile.inc"
5
6.PATH: ${GCCDIR}
7
8PROG= cpp0
9SRCS= cppmain.c c-parse+%DIKED.c c-lang.c c-decl.c
10
74fbd2f0
DR
11NOMAN= 1
12NOSHARED?=yes
13
14DPADD+= ${LIBCC_INT}
15LDADD+= ${LIBCC_INT}
16
17#-----------------------------------------------------------------------
18# C parser
19
20c-parse+%DIKED.c: c-parse.c
21 sed -e "s/malloc/xmalloc/g" \
22 -e "s/realloc/xrealloc/g" \
23 ${.ALLSRC} > ${.TARGET}
24
25c-parse.y: c-parse.in
26 sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
27 -e "/^ifc$$/d" \
28 -e "/^end ifc$$/d" \
29 ${.ALLSRC} > ${.TARGET}
30
31CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
32CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
33
34#-----------------------------------------------------------------------
35
36.include <bsd.prog.mk>