1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1994-08-02 20:15:59 +00:00
|
|
|
|
1999-04-04 16:36:35 +00:00
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${GCCDIR}/cp
|
1996-09-19 15:53:53 +00:00
|
|
|
|
1999-08-16 04:10:48 +00:00
|
|
|
YACC= bison --broken-undeftoken-init
|
1999-08-01 15:44:51 +00:00
|
|
|
|
1999-08-16 04:10:48 +00:00
|
|
|
PROG= cc1plus
|
|
|
|
SRCS= parse.c parse.h
|
|
|
|
SRCS+= call.c class.c cvt.c decl.c decl2.c errfn.c error.c except.c expr.c \
|
1999-04-04 16:36:35 +00:00
|
|
|
friend.c init.c lex.c method.c pt.c ptree.c repo.c rtti.c \
|
|
|
|
search.c semantics.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
|
1994-08-02 20:15:59 +00:00
|
|
|
BINDIR= /usr/libexec
|
|
|
|
NOMAN= 1
|
1997-06-29 06:03:42 +00:00
|
|
|
NOSHARED=yes
|
1995-09-22 14:14:32 +00:00
|
|
|
DPADD+= ${LIBCC_INT}
|
1996-09-21 14:27:38 +00:00
|
|
|
LDADD+= ${LIBCC_INT}
|
1999-04-04 16:36:35 +00:00
|
|
|
CFLAGS+= -I${GCCDIR}/cp -I.
|
1996-09-19 15:53:53 +00:00
|
|
|
|
1997-10-05 09:40:24 +00:00
|
|
|
.ORDER: parse.c parse.h
|
1996-09-19 15:53:53 +00:00
|
|
|
parse.c parse.h: parse.y
|
1999-07-28 07:22:08 +00:00
|
|
|
${YACC} -d -o parse.c ${GCCDIR}/cp/parse.y
|
1996-09-19 15:53:53 +00:00
|
|
|
grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
|
|
|
|
|
|
|
|
CLEANFILES+= parse.c parse.h
|
1994-08-02 20:15:59 +00:00
|
|
|
|
1999-04-04 16:36:35 +00:00
|
|
|
CPPHDRS= exception new new.h typeinfo
|
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1999-08-16 04:10:48 +00:00
|
|
|
${CPPHDRS:S;^;${GCCDIR}/cp/inc/;} \
|
|
|
|
${DESTDIR}/usr/include/g++
|
1999-04-04 16:36:35 +00:00
|
|
|
|
1994-08-02 20:15:59 +00:00
|
|
|
.include <bsd.prog.mk>
|