From 9018d6738b78a5dd1be351e07133122d659c50ee Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 18 Dec 2001 03:12:24 +0000 Subject: [PATCH] Changes in order to compile GCC 3.0.2. --- gnu/usr.bin/cc/cc1plus/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 gnu/usr.bin/cc/cc1plus/Makefile diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile new file mode 100644 index 000000000000..cf89851c1d87 --- /dev/null +++ b/gnu/usr.bin/cc/cc1plus/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +.include "../Makefile.inc" + +.PATH: ${GCCDIR}/cp ${GCCDIR} + +PROG= cc1plus +SRCS= parse.c parse.h cfns.h +SRCS+= call.c class.c cvt.c decl.c decl2.c errfn.c error.c except.c expr.c \ + friend.c init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c \ + search.c semantics.c spew.c tree.c typeck.c typeck2.c xref.c dump.c optimize.c + +BINDIR= /usr/libexec +NOMAN= 1 +NOSHARED=yes + +CFLAGS+= -I${GCCDIR}/cp -I. + +DPADD+= ${LIBCC_INT} +LDADD+= ${LIBCC_INT} + +.ORDER: parse.c parse.h +parse.c parse.h: parse.y + ${YACC} -d -o parse.c ${GCCDIR}/cp/parse.y + grep '^#define[ ]*YYEMPTY' parse.c >>parse.h + +CLEANFILES+= parse.c parse.h cfns.h + +cfns.h: + gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \ + ${GCCDIR}/cp/cfns.gperf > ${.TARGET} + +.include