mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
41 lines
954 B
Makefile
41 lines
954 B
Makefile
# $FreeBSD$
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.PATH: ${GCCDIR}/cp ${GCCDIR}
|
|
|
|
PROG= cc1plus
|
|
SRCS= parse.y cfns.h
|
|
SRCS+= main.c cp-lang.c
|
|
SRCS+= 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
|
|
|
|
BINDIR= /usr/libexec
|
|
NOMAN= 1
|
|
NOSHARED?=yes
|
|
|
|
CFLAGS+= -I${GCCDIR}/cp -I.
|
|
|
|
DPADD+= ${LIBCC_INT}
|
|
LDADD+= ${LIBCC_INT}
|
|
|
|
CLEANFILES= parse.c parse.h y.tab.c y.tab.h cfns.h
|
|
|
|
.ORDER: parse.c parse.h
|
|
parse.c: parse.y
|
|
${YACC} ${YFLAGS} ${GCCDIR}/cp/${.TARGET:S/c$/y/}
|
|
sed -e "s/malloc/xmalloc/g" \
|
|
-e "s/realloc/xrealloc/g" \
|
|
y.tab.c >${.TARGET}
|
|
|
|
parse.h: parse.c y.tab.h
|
|
cp -pf y.tab.h ${.TARGET}
|
|
grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET}
|
|
|
|
cfns.h:
|
|
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \
|
|
${GCCDIR}/cp/cfns.gperf > ${.TARGET}
|
|
|
|
.include <bsd.prog.mk>
|