binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc / cc1plus / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/gnu/usr.bin/cc/cc1plus/Makefile,v 1.22.2.1 2002/06/20 23:13:31 obrien Exp $
17030342 2# $DragonFly: src/gnu/usr.bin/cc/cc1plus/Attic/Makefile,v 1.6 2004/02/02 05:43:11 dillon Exp $
984263bc
MD
3
4.include "../Makefile.inc"
5
6.PATH: ${GCCDIR}/cp
7
8PROG= cc1plus
9SRCS= parse.y y.tab.h parse.h
10SRCS+= call.c class.c cvt.c decl.c decl2.c errfn.c error.c except.c expr.c \
11 friend.c init.c lex.c method.c pt.c ptree.c repo.c rtti.c \
12 search.c semantics.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
984263bc
MD
13NOMAN= 1
14NOSHARED=yes
15
16CFLAGS+= -I${GCCDIR}/cp -I.
17
18DPADD+= ${LIBCC_INT}
19LDADD+= ${LIBCC_INT}
20
21parse.h: y.tab.h parse.c
22 cp -p y.tab.h ${.TARGET}
23 grep '^#define[ ]*YYEMPTY' parse.c >>${.TARGET}
24
25CLEANFILES+= parse.h
26
27CPPHDRS= exception new new.h typeinfo
28
29beforeinstall:
30 ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
31 ${CPPHDRS:S;^;${GCCDIR}/cp/inc/;} \
63e34214 32 ${DESTDIR}/usr/include/c++/2.95
984263bc
MD
33
34.include <bsd.prog.mk>