1998-10-15 00:46:35 +04:00
|
|
|
# $NetBSD: Makefile,v 1.12 1998/10/14 20:46:36 tv Exp $
|
1998-03-29 15:34:19 +04:00
|
|
|
|
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
PROG= cc1plus
|
1998-08-18 02:29:54 +04:00
|
|
|
SRCS= c-common.c c-pragma.c \
|
1998-08-17 06:25:44 +04:00
|
|
|
call.c decl.c errfn.c expr.c pt.c sig.c typeck2.c class.c \
|
|
|
|
decl2.c error.c lex.c parse.y ptree.c rtti.c spew.c typeck.c \
|
|
|
|
cvt.c except.c friend.c init.c method.c search.c semantics.c \
|
|
|
|
tree.c xref.c repo.c
|
|
|
|
CLEANFILES+= parse-h
|
1998-04-09 04:32:31 +04:00
|
|
|
YHEADER=1
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-07-09 23:44:38 +04:00
|
|
|
lex.o pt.o spew.o: parse-h
|
1998-04-09 04:32:31 +04:00
|
|
|
parse-h: parse.h
|
1998-10-14 16:32:37 +04:00
|
|
|
grep '^#define[ ]*YYEMPTY' parse.c >> parse.h
|
1998-04-09 04:32:31 +04:00
|
|
|
@touch parse-h
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
# Needs to be before dist/gcc or tree.c comes from the wrong place.
|
1998-04-03 06:20:28 +04:00
|
|
|
.PATH: ${.CURDIR}/../../../dist/gcc/cp
|
1998-03-29 15:34:19 +04:00
|
|
|
|
1998-10-15 00:46:35 +04:00
|
|
|
.NOPATH: parse.c parse.h
|
|
|
|
.BEGIN:
|
|
|
|
@rm -f ${DIST}/cp/parse.c ${DIST}/cp/parse.h
|
|
|
|
|
1998-03-29 15:34:19 +04:00
|
|
|
.include "../Makefile.cc1"
|
|
|
|
|
1998-08-17 06:25:44 +04:00
|
|
|
CPPFLAGS+= -I. -I${DIST}/cp
|