aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/cc1plus
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-04-04 16:36:35 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-04-04 16:36:35 +0000
commit18ff6ae909e7ce64495fee31ac83b770eda540b2 (patch)
treed03d78886af84b6f9d6f85827e1c247ccfb9fe57 /gnu/usr.bin/cc/cc1plus
parenteec64f7486b83d0692714786084cbc7c9e1a402e (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/cc/cc1plus')
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile
index 51435074f2c9..f9b4051379f0 100644
--- a/gnu/usr.bin/cc/cc1plus/Makefile
+++ b/gnu/usr.bin/cc/cc1plus/Makefile
@@ -1,21 +1,22 @@
#
-# $Id: Makefile,v 1.12 1997/06/29 06:03:27 pst Exp $
+# $Id: Makefile,v 1.16 1999/03/05 04:55:03 obrien Exp $
#
-#First, so that we get cp/tree.c and cp/expr.c instead of the C version
-.PATH: ${.CURDIR}/../../../../contrib/gcc/cp
+.include "../Makefile.inc"
+
+.PATH: ${GCCDIR}/cp
PROG = cc1plus
-SRCS = parse.c parse.h \
- call.c class.c cvt.c decl.c decl2.c edsel.c errfn.c \
- error.c except.c expr.c gc.c init.c lex.c method.c pt.c \
- ptree.c repo.c search.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
+SRCS = parse.c parse.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 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
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED=yes
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
-CFLAGS+= -I. # I mean it.
+CFLAGS+= -I${GCCDIR}/cp -I.
.ORDER: parse.c parse.h
parse.c parse.h: parse.y
@@ -24,4 +25,11 @@ parse.c parse.h: parse.y
CLEANFILES+= parse.c parse.h
+CPPHDRS= exception new new.h typeinfo
+
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${CPPHDRS:S;^;${GCCDIR}/cp/inc/;} \
+ ${DESTDIR}/usr/include/g++
+
.include <bsd.prog.mk>