binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / cc1plus / Makefile
... / ...
CommitLineData
1# $FreeBSD: src/gnu/usr.bin/cc/cc1plus/Makefile,v 1.33 2003/07/11 05:37:23 kan Exp $
2# $DragonFly: src/gnu/usr.bin/cc3/cc1plus/Attic/Makefile,v 1.3 2004/02/02 05:43:12 dillon Exp $
3
4.include "../Makefile.inc"
5
6.PATH: ${GCCDIR}/cp ${GCCDIR}
7
8PROG= cc1plus
9SRCS= parse+%DIKED.c parse.h cfns.h
10SRCS+= main.c cp-lang.c c-opts.c \
11 call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c friend.c \
12 init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c search.c \
13 semantics.c spew.c tree.c typeck.c typeck2.c dump.c optimize.c
14
15NOMAN= 1
16NOSHARED?=yes
17
18CFLAGS+= -I${GCCDIR}/cp -I.
19
20DPADD+= ${LIBCC_INT}
21LDADD+= ${LIBCC_INT}
22
23#-----------------------------------------------------------------------
24# C++ parser
25
26parse+%DIKED.c y.tab.h: parse.c
27 sed -e "s/malloc/xmalloc/g" \
28 -e "s/realloc/xrealloc/g" \
29 ${.ALLSRC:M*c} > ${.TARGET}
30
31parse.h: y.tab.h
32 cp -pf y.tab.h ${.TARGET}
33 grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET}
34
35cfns.h: cfns.gperf
36 gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \
37 ${.ALLSRC} > ${.TARGET}
38
39CLEANFILES= parse+%DIKED.c parse.c parse.h y.tab.h cfns.h
40
41.include <bsd.prog.mk>