9b2874bb8967eb6ee48cabbac50ad1448255b2aa
[dragonfly.git] / gnu / usr.bin / cc / cc1plus / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/cc1plus/Makefile,v 1.22.2.1 2002/06/20 23:13:31 obrien Exp $
2 # $DragonFly: src/gnu/usr.bin/cc/cc1plus/Attic/Makefile,v 1.6 2004/02/02 05:43:11 dillon Exp $
3
4 .include "../Makefile.inc"
5
6 .PATH: ${GCCDIR}/cp
7
8 PROG=   cc1plus
9 SRCS=   parse.y y.tab.h parse.h
10 SRCS+=  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
13 NOMAN=  1
14 NOSHARED=yes
15
16 CFLAGS+= -I${GCCDIR}/cp -I.
17
18 DPADD+= ${LIBCC_INT} 
19 LDADD+= ${LIBCC_INT}
20
21 parse.h: y.tab.h parse.c
22         cp -p y.tab.h ${.TARGET}
23         grep '^#define[   ]*YYEMPTY' parse.c >>${.TARGET}
24
25 CLEANFILES+=    parse.h
26
27 CPPHDRS=        exception new new.h typeinfo
28
29 beforeinstall:
30         ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
31             ${CPPHDRS:S;^;${GCCDIR}/cp/inc/;} \
32             ${DESTDIR}/usr/include/c++/2.95
33
34 .include <bsd.prog.mk>