2001-12-18 03:12:24 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
|
|
|
|
.PATH: ${GCCDIR}/cp ${GCCDIR}
|
|
|
|
|
|
|
|
PROG= cc1plus
|
2002-12-04 17:34:21 +00:00
|
|
|
SRCS= parse+%DIKED.c parse.h cfns.h
|
2003-07-11 05:37:23 +00:00
|
|
|
SRCS+= main.c cp-lang.c c-opts.c \
|
2002-05-13 03:27:03 +00:00
|
|
|
call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c friend.c \
|
|
|
|
init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c search.c \
|
|
|
|
semantics.c spew.c tree.c typeck.c typeck2.c dump.c optimize.c
|
2001-12-18 03:12:24 +00:00
|
|
|
|
|
|
|
BINDIR= /usr/libexec
|
|
|
|
NOMAN= 1
|
2002-04-06 23:18:01 +00:00
|
|
|
NOSHARED?=yes
|
2001-12-18 03:12:24 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${GCCDIR}/cp -I.
|
|
|
|
|
|
|
|
DPADD+= ${LIBCC_INT}
|
|
|
|
LDADD+= ${LIBCC_INT}
|
|
|
|
|
2002-05-13 03:27:03 +00:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
# C++ parser
|
2002-05-07 01:41:46 +00:00
|
|
|
|
2002-05-13 03:27:03 +00:00
|
|
|
parse+%DIKED.c y.tab.h: parse.c
|
2002-04-06 23:18:01 +00:00
|
|
|
sed -e "s/malloc/xmalloc/g" \
|
|
|
|
-e "s/realloc/xrealloc/g" \
|
2002-05-13 01:54:26 +00:00
|
|
|
${.ALLSRC:M*c} > ${.TARGET}
|
2001-12-18 03:12:24 +00:00
|
|
|
|
2002-05-13 01:54:26 +00:00
|
|
|
parse.h: y.tab.h
|
2002-05-07 01:41:46 +00:00
|
|
|
cp -pf y.tab.h ${.TARGET}
|
|
|
|
grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET}
|
2001-12-18 03:12:24 +00:00
|
|
|
|
2002-12-04 17:34:21 +00:00
|
|
|
cfns.h: cfns.gperf
|
|
|
|
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
CLEANFILES= parse+%DIKED.c parse.c parse.h y.tab.h cfns.h
|
2002-05-13 03:27:03 +00:00
|
|
|
|
2001-12-18 03:12:24 +00:00
|
|
|
.include <bsd.prog.mk>
|