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